I want to write a script in Python that would connect and post some data to several web-servers automatically. Please write how to post and submit data for example to google. Just can't understand how to do it from Python documentation. Thank You.
-
Step 1: Search. This is a well-asked question. Numerous answers.S.Lott– S.Lott2011-04-20 12:08:19 +00:00Commented Apr 20, 2011 at 12:08
-
possible duplicate of Python URLLib / URLLib2 POSTuser2665694– user26656942011-04-20 12:10:38 +00:00Commented Apr 20, 2011 at 12:10
-
Please research yourself before asking - SO is not about please-research-in-SO-for-meuser2665694– user26656942011-04-20 12:11:08 +00:00Commented Apr 20, 2011 at 12:11
Add a comment
|
2 Answers
Check the documentation on the urllib2 module and check out this urllib2 the missing manual. It's all there.
Comments
If you are open for packages outside standard library, then mechanize is a good option for such tasks.