search for: daytrott

Displaying 1 result from an estimated 1 matches for "daytrott".

Did you mean: daytrotter
2009 Mar 11
0
problem scrapping ATnT site (Matt White)
...ia google. I''m trying to > figure out what i''m missing in order to download the files associated > with the links. > > > > require ''mechanize'' > > agent = WWW::Mechanize.new > pagent = WWW::Mechanize.new > agent.get("http://www.daytrotter.com/songs?offset=60/") > links = agent.page.search(''a'') > hrefs = links.map { |m| m[''href''] }.select { |u| u =~ /\.mp3.link$/ } # > just links ending in mfile > #puts hrefs > #FileUtils.mkdir_p(''daytrotter'') # keep it neat...