[英]File Downloading using Python
I have to download file from website after selecting multiple option on the website. 选择网站上的多个选项后,我必须从网站下载文件。
I have three checkboxes each is having same name. 我有三个复选框,每个复选框都有相同的名称。 I could select one box by using name and value like this.
我可以通过使用这样的名称和值来选择一个框。
urllib.urlencode({'contentPartnerIds':'67'})
I need to select another checkbox in the same group like this. 我需要像这样在同一组中选择另一个复选框。
urllib.urlencode({'contentPartnerIds':'67','contentPartnerIds':'68'})
but this is not working. 但这不起作用。 Could you please help on this?
您能帮上忙吗?
Take a look at mechanize it's great when you need to do things with forms on page and is very simple. 看一下机械化,当您需要使用页面上的表单进行操作时非常好,而且非常简单。
http://wwwsearch.sourceforge.net/mechanize/ http://wwwsearch.sourceforge.net/mechanize/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.