Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: Communicating with a PHP script (and pretending I'm a browser) Date: Tue, 11 Nov 2014 17:33:32 +0000 (UTC) Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 11 Nov 2014 17:33:32 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="32525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qvr9DLtNiKwWLVeYJRo+EmOvTHtUWjEI=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:Jf7TJVCaNHp2xT2dADURztArY6c= Xref: csiph.com comp.lang.python:80543 On Tue, 11 Nov 2014 10:48:41 -0500, Larry Martell wrote: > Is there some way python can communicate like curl ... it needs to send > the request string in the body of a POST request to the URL that will > route to the PHP script and get the output back. http://www.lmgtfy.com/?q=python+http+request and perhaps http://www.lmgtfy.com/?q=python+parse+html Personally I think last time I wanted to do we scraping in python I used requests and beautifulsoup, but ymmv. -- Denis McMahon, denismfmcmahon@gmail.com