mechanize-ruby Questions
2
Solved
I can't remove whitespaces from a string.
My HTML is:
<p class='your-price'>
Cena pro Vás: <strong>139&nbsp;<small>Kč</small></strong>
</p>
My code is:
...
Galatia asked 2/1, 2013 at 18:52
1
Solved
I'm trying to scrape these listings and provide more exposure for these job listings on a site that belongs to a client of mine. The issue is that I need to be able to link to the specific job list...
Aeronautics asked 28/9, 2013 at 15:25
3
Solved
I have this:
<a class="top_level_active" href="javascript:Submit('menu_home')">Account Summary</a>
I want to click that link but I get an error when using link_to.
I've tried:
b...
Cyler asked 20/4, 2012 at 2:18
5
Solved
I'm trying to set the value of a select list using Mechanize with Ruby. I can navigate to the page with the select list, grab the form using the .form method, and find the select list.
report_form...
Hyperplane asked 26/3, 2012 at 16:25
2
Solved
I'm trying to do a little bit of webscraping, but the WWW:Mechanize gem doesn't seem to like the encoding and crashes.
The post request results in a 302 redirect (which mechanize follows, so far so...
Blas asked 25/2, 2009 at 14:22
1
Solved
In a webpage suppose i have the below values:
<td> <a href="https://www.test.com/test123/a.html"> test11 </a> </td>
<td> <a href="https://www.test.com/test12333/r....
Cq asked 20/1, 2013 at 19:18
2
Solved
I wrote a script that will go through all of the customers in our database, verify that their website URL works, and try to find a twitter link on their homepage. We have a little over 10,000 URLs ...
Shabuoth asked 1/11, 2012 at 22:9
2
I'm getting this error in my production environment (CentOS 5.6), but it runs fine in development (Ubuntu 11.04). In both environments, the app is using Ruby 1.9.3 and Rails 3.0.9 and is served wit...
Avernus asked 27/3, 2012 at 17:56
1
Solved
Generally Mechanize will get a webpage from a URL and the result of the get method is a Mechanize::Page object, from which you can use a lot of useful methods.
If the page lives in a string, how ...
Residence asked 3/3, 2012 at 19:56
1
Solved
In Mechanize on Ruby, I have to assign a new variable to every new page I come to. For example:
page2 = page1.link_with(:text => "Continue").click
page3 = page2.link_with(:text => "About")...
Americium asked 14/7, 2011 at 6:37
1
Solved
I wrote simple function which handles fetching of the url:
def tender_page_get url, agent
sleep(rand(6)+2)
begin
return agent.get(url).parser
rescue Errno::ETIMEDOUT, Timeout::Error, Net::HTTP...
Sasnett asked 8/5, 2011 at 9:14
1
© 2022 - 2024 — McMap. All rights reserved.