Hi all –
So I'm scraping a webpage with ruby, and I get something like this as an output:
Now, if all I want is the
how can I go about extracting that? I've been trying with Nokogiri and random regex patterns I've found online, but I can't manage it.
Thanks!
So I'm scraping a webpage with ruby, and I get something like this as an output:
Code:
<a onclick="(new Image()).src='/rg/find-title-1/title_popular/images/b.gif?link=/title/tt0317740/';" href="title/tt0317740/">The Italian Job</a>
Now, if all I want is the
Code:
title/tt0317740/
Thanks!