Top "Mechanize" questions

A library for automated web browsing originally developed for Perl, there are now also Python and Ruby implementations.

How to add cookie to existing cookielib CookieJar instance in Python?

I have a CookieJar that's being used with mechanize that I want to add a cookie to. How can I …

python cookies mechanize cookiejar cookielib
Why does accessing a SSL site with Mechanize on Windows fail, but on Mac work?

This is the code I'm using to connect to the SSL site. require 'mechanize' a = Mechanize.new page = a.get …

ruby mechanize
How to manually add a cookie to Mechanize state?

I'm working in Ruby, but my question is valid for other languages as well. I have a Mechanize-driven application. The …

ruby cookies mechanize
How to set custom user-agent for Mechanize in Rails

I know you have a set of pre-defined aliases you can use by setting agent.user_agent_alias = 'Linux Mozilla' …

ruby-on-rails ruby ruby-on-rails-3 mechanize
How to get the page source with Mechanize/Nokogiri

I'm logged into a webpage/servlet using Mechanize. I have a page object: jobShortListPg = agent.get(addressOfPage) When I use: …

ruby nokogiri mechanize
Programmatic Python Browser with JavaScript

I want to screen-scrape a web-site that uses JavaScript. There is mechanize, the programmatic web browser for Python. However, it (…

javascript python browser screen-scraping mechanize
Ruby Mechanize get elements with specified text

I am trying to parse the contents of a website using mechanize and I am stuck at a point. The …

css ruby mechanize
Get the code from inspect element using Python

In the Safari browser, I can right-click and select "Inspect Element", and a lot of code appears. Is it possible …

python web mechanize inspect-element
How to get mechanize requests to look like they originate from a real browser

OK, here's the header(just an example) info I got from Live HTTP Header while logging into an account: http://…

python http-headers http-post mechanize mechanize-python
Submitting a form in mechanize

I'm having issues submitting the result of a form submission (I can submit a form, but I can't submit the …

python forms mechanize