Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80543

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

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 <denismfmcmahon@gmail.com>
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 <m3th9c$vod$1@dont-email.me> (permalink)
References <mailman.15667.1415720928.18130.python-list@python.org>
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Communicating with a PHP script (and pretending I'm a browser) Larry Martell <larry.martell@gmail.com> - 2014-11-11 10:48 -0500
  Re: Communicating with a PHP script (and pretending I'm a browser) Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-11 17:33 +0000

csiph-web