开发者

post method in Python

开发者 https://www.devze.com 2023-02-27 01:56 出处:网络
I want to write a script in Python that would connect and post some data to several web-servers automatically.

I want to write a script in Python that would connect and post some data to several web-servers automatically. Please write how t开发者_StackOverflow中文版o post and submit data for example to google. Just can't understand how to do it from Python documentation. Thank You.


Check the documentation on the urllib2 module and check out this urllib2 the missing manual. It's all there.


If you are open for packages outside standard library, then mechanize is a good option for such tasks.

0

精彩评论

暂无评论...
验证码 换一张
取 消