Project

pedophile

0.0
No commit activity in last 3 years
No release in over 3 years
download static pages for offline usage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Pedophile

Download static web pages.

Sample usage


p = Pedophile::Downloader.new

p.url = "http://www.classnamer.com/"

# clear tmp directory
p.wget.clear!

# sign in using devise like form
#p.login.devise_login("http://www.classnamer.com/login", "email@email.com", "password")

# download, process
p.make_it_so

# zip into single file in tmp/site/site.zip
p.zip("site.zip")

If you would like change output directory www.classnamer.com to something nicer like super_site and store in zip in different place, please remove:

p.zip("site.zip")

and add:

p.zip_with_custom_dir("/home/dude/super_offline_site.zip", "super_site")