Communicating with a PHP script (and pretending I'm a browser)

Denis McMahon denismfmcmahon at gmail.com
Tue Nov 11 18:33:32 CET 2014


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 at gmail.com



More information about the Python-list mailing list