mechanize
How to parse javascript generated urls in Ruby?
My first question here so let\'s be brief. I am parsing this site: http://78.133.214.226/fotoweb/Grid.fwx with ruby mechanize. I get page and post some search term into the form.[详细]
2023-03-21 20:27 分类:问答Cucumber, webrat mechanize testing php/drupal application on MAMP, authentication issue
I\'ve got cucumber testing my drupal application with passing tests like so: Given /^I am authenticated as a \"([^\"]*)\" user$/ do |role|[详细]
2023-03-21 19:07 分类:问答How to insert a string to a text field using mechanize in ruby?
I know is a very simple question but I\'ve been stuck for an hour and I just can\'t understand how this works.[详细]
2023-03-21 16:08 分类:问答Setting Session variable
I am trying to use mechan开发者_JAVA技巧ize to scrape a webpage but I found out that some pages are not reachable by URL but by changing a session variable to a certain value, so how can I set a sessi[详细]
2023-03-21 00:55 分类:问答400 bad request error when trying to do a HTTP POST using python mechanize
I\'ve checked the headers info using Live HTTP headers when doing an HTTP POST in firefox, and then I try to do this using mechanize which bro开发者_StackOverflowught me 400 bad request error. Heres m[详细]
2023-03-20 19:48 分类:问答Mechanize: Search all Forms
It appears that both of these give me access to the first FORM element in a document: page.form page.forms.first[详细]
2023-03-20 17:22 分类:问答How to download files from a web based file server with Python Mechanize
I have a series of files on a private ftp file server that I am trying to download using mechanize. The mechan开发者_开发百科ize link objects have the structure[详细]
2023-03-19 09:47 分类:问答Using Ruby with Mechanize to log into a website
I need to scrape data from a site, but it requires my login first. I\'ve been using hpricot to successfully scrape other sites, but I\'m new to using mechanize, and I\'m truly baffled by how to work i[详细]
2023-03-18 20:32 分类:问答Proxy setting for zope.testbrowser
In mechanize we can set proxy like this: br = mechanize.Browser() br.set_proxies({\"http\": \"joe:password@myproxy.example.com:3开发者_StackOverflow社区128\",[详细]
2023-03-18 20:27 分类:问答Mechanze form submission causes 'Assertion Error' in response when .read() is attempted
I am writing a web-crawl program with python and am unable to login using mechanize.The form on the site looks like:[详细]
2023-03-17 08:54 分类:问答