up vote 1 down vote favorite
share [g+] share [fb]

I would like to retrieve all .html files from a website that has a certain text on its name:

eg. this_is_good_site.html

So, I would like to download .html files with a word "good" on its name. I tried wget and curl, but I did not understand how can I choose those files using a regular expression? Is there a Python or Perl solution, if command line tools on Unix can't do this?

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

Well, if you're wanting to do it with Python you might look into using urlib2 - you would also probably have better luck with this question on StackOverflow.

link|improve this answer
feedback

Try HTTrack website copier or a similar program, better than command line. download it all to a directory, sort by .html copy and paste them all somewhere else, delete the leftovers

http://www.httrack.com/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown