Midhat
Midhat

Reputation: 17810

Website downloader library

I need to put a little project together for myself, and I need some functionality to download a page for offline viewing. Is there a library that will download a given page and its embedded images, and edit the img tags to reflect the local locations of the images.

I know there are a lot of website downloaders out there, but I cant find something that i can use directly in my code.

I have some basic scripts done in python, so Python is very welcome. but pretty much any language will do.

Upvotes: 1

Views: 628

Answers (4)

EricR
EricR

Reputation: 1497

simplest solution I can think of.

wget -p example.com

Upvotes: 0

Dingo
Dingo

Reputation: 2706

Yes, BeautifulSoup + python urllib module

Upvotes: 1

geffchang
geffchang

Reputation: 3340

How about python web crawler? http://code.google.com/p/pywebcrawler/

OR, Anemone (ruby)? http://anemone.rubyforge.org/

Upvotes: 1

SLaks
SLaks

Reputation: 887449

You're looking for BeautifulSoup.

Upvotes: 1

Related Questions