Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50819
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python HTTP POST |
| Date | 2013-07-18 12:04 +1000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ks7i3q$68k$1@dont-email.me> (permalink) |
| References | <00ec2f9b-fcae-428c-8932-163e653dd71b@googlegroups.com> |
On 18/07/2013 4:49 AM, Matt Graves wrote: > How would I submit a python HTTP POST request to... for example, go to google.com, enter "Pie" into the search box and submit (Search) Other replies have suggested how you could do it by building the request yourself. Another approach is to interact directly with the form using mechanize: http://wwwsearch.sourceforge.net/mechanize/ Unfortunately this doesn't appear to actually work with Google, as its robots.txt won't allow it. But if you're dealing with an intranet-based form in your organisation you should be fine.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python HTTP POST Matt Graves <tunacubes@gmail.com> - 2013-07-17 11:49 -0700
Re: Python HTTP POST John Gordon <gordon@panix.com> - 2013-07-17 20:15 +0000
Re: Python HTTP POST Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-17 16:26 -0400
Re: Python HTTP POST Sivaram Neelakantan <nsivaram.net@gmail.com> - 2013-07-18 23:37 +0530
Re: Python HTTP POST alex23 <wuwei23@gmail.com> - 2013-07-18 12:04 +1000
csiph-web