Skip to content

zahradil/phantomjs-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

phantomjs-scripts

Some note very useful scripts to be used with PhantomJS.

image-scraper.js

Usage:

<scriptname> <url> <destination directory> <jquery selector for a element>

This script load the page, apply the selector and collects all links in href attribute of a element. Then all links are downloaded to destionation directory. If any file already exists in dest dir, link is not downloaded, so script can be run the second time without re-downloading the files.

Notes:

  • Destination directory must end with path delimiter (\ or /)

  • This need be run with --web-security off:

    phantomjs.exe --web-security=false image-scraper.js "https://example.com" .\dest-dir\ a.photoThumb

About

Some not very useful scripts to be used with https://phantomjs.org/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published