New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find by xpath #18
Comments
Hi @abacha, Yes, Upton supports searching by XPath. If you had an index page ( = a page with links you want to scrape), you could do something like this:
Thanks to #11, you can use XPath or CSS selectors interchangeably. |
I wish I could do it in a simple way like I've demonstrated.. I need to do lots of searches through different xpath's in the same url |
Is the value of the content specified by the XPath expression another link to be scraped? Or just data you want to access? And do you have lots of pages, or just one page to be scraped? |
If you just want to scrape lots of data from one page, just use Nokogiri. (Upton uses Nokogiri for HTML parsing.)
|
Were you able to find a solution, @abacha? |
is it possible to do something like that:
The text was updated successfully, but these errors were encountered: