mechanize Questions

6

Solved

I am trying to import a module from a particular directory. The problem is that if I use sys.path.append(mod_directory) to append the path and then open the python interpreter, the directory mod_...
Comfortable asked 19/4, 2013 at 22:27

9

Solved

I am trying to fetch some data from a website. However it returns me incomplete read. The data I am trying to get is a huge set of nested links. I did some research online and found that this might...
Kessiah asked 21/1, 2013 at 15:45

5

Solved

I've been trying for several day now (unsuccessfully) to scrape cities from about 500 Facebook URLs. However, Facebook handles its data in a very strange way and I can't figure out what's going on ...
Collado asked 27/9, 2013 at 2:37

4

Solved

I'm trying to get all the href's from a HTML code and store it in a list for future processing such as this: Example URL: www.example-page-xl.com <body> <section> <a href="/hel...
Humidifier asked 16/5, 2017 at 12:6

2

Solved

I have a form with <input type="button" name="submit" /> button and would like to be able to click it. I have tried mech.form.click("submit") but that gives the following error: ControlNot...
Hitch asked 27/11, 2009 at 0:16

8

Solved

I want to screen-scrape a web-site that uses JavaScript. There is mechanize, the programmatic web browser for Python. However, it (understandably) doesn't interpret javascript. Is there any progr...
Replete asked 16/12, 2009 at 18:37

4

Solved

I have a table of citations that includes the last name of the first author, the title, journal, year, and page numbers for each citation. I have posted the first few lines of the table on Google D...
Tillford asked 14/3, 2012 at 22:53

4

Solved

I wrote a small program that uses Mechanize to traverse a site. I want to write tests for it, but don't want it to actually go log onto the site every time I run the tests. I would like to mock the...
Kung asked 28/1, 2010 at 2:6

3

Solved

This is the code I'm using to connect to the SSL site. require 'mechanize' a = Mechanize.new page = a.get 'https://site.com' I"m using using Ruby 1.9.3 and Mechanize 2.1pre1 + dependencies. On M...
Gaylor asked 19/12, 2011 at 21:44

1

Has someone managed to use mechanize with Google App Engine application?
Nonintervention asked 7/9, 2009 at 15:30

1

I am trying to check the dates/times availability for an exam using Python mechanize and send someone an email if a particular date/time becomes available in the result (result page screenshot atta...
Son asked 6/3, 2016 at 13:12

3

Is there is a way to convert a Mechanize relative-link object to another one which contains the absolute URL. Mechanize must know the absolute link, because I can call the click method on relativ...
Kissinger asked 3/8, 2013 at 21:29

7

I am trying to use Python to login to a website and gather information from several webpages and I get the following error: Traceback (most recent call last): File "extract_test.py", line 43, in...
Joslin asked 1/4, 2014 at 12:35

2

I'm trying to use the Ruby version of Mechanize to extract my employer's tickets from a ticket management system that we're moving away from that does not supply an API. Problem is, it seems Mecha...
Daze asked 12/8, 2011 at 21:31

3

Solved

I'm logged into a webpage/servlet using Mechanize. I have a page object: jobShortListPg = agent.get(addressOfPage) When I use: puts jobShortListPg I get the "mechanized" version of the page ...
Charleen asked 26/6, 2011 at 22:20

2

Solved

I can't remove whitespaces from a string. My HTML is: <p class='your-price'> Cena pro Vás: <strong>139 <small>Kč</small></strong> </p> My code is: ...
Galatia asked 2/1, 2013 at 18:52

3

Solved

I have a particularly difficult form that I am trying to click the search button and can't seem to do it. Here is the code for the form from the page source: <input type="image" name="" src="ht...
Inelegance asked 31/8, 2011 at 21:11

5

I got those commands on irb require 'mechanize' agent = Mechanize.new agent.get('https://monabo.lemonde.fr/customer/account/forgotpassword/') I got this error: OpenSSL::SSL::SSLError: SSL_conne...
Jolynjolynn asked 13/4, 2015 at 16:36

2

I'm trying to retrieve the mechanize module for python 3.4. Can anybody guide me in the right direction and perhaps walk me through the steps that I would need to take in order to make the correct ...
Ambrotype asked 2/8, 2015 at 17:46

5

Solved

I'm working in Ruby, but my question is valid for other languages as well. I have a Mechanize-driven application. The server I'm talking to sets a cookie using JavaScript (rather than standard set...
Gorlicki asked 30/3, 2010 at 23:26

11

I saved mechanize in my Python 2.7 directory. But when I type import mechanize into the Python shell, I get an error message that reads: Traceback (most recent call last): File "<pyshell#0>...
Scapegrace asked 3/2, 2011 at 16:2

2

Solved

i'm trying to log in to the website http://www.magickartenmarkt.de and do some analyzing in the member-area (https://www.magickartenmarkt.de/?mainPage=showWants). I saw other examples for this, but...
Curkell asked 16/5, 2013 at 21:56

3

I'm using a proxy (behind corporate firewall), to login to an https domain. The SSL handshake doesn't seem to be going well: CertificateError: hostname 'ats.finra.org:443' doesn't match 'ats.finra...
Chipmunk asked 27/2, 2015 at 15:25

2

I want to scrape some data from a website. Basically, the website has some tabular display and shows around 50 records. For more records, the user has to click some button which makes an ajax call...
Bennettbenni asked 5/1, 2014 at 21:27

3

Solved

I'm getting this error when I try to run the code: File "C:\Python27\lib\site-packages\mechanize\_urllib2_fork.py", line 1118, in do_open raise URLError(err) urllib2.URLError: <urlopen error [...
Malley asked 2/1, 2015 at 1:22

© 2022 - 2025 — McMap. All rights reserved.