nrabinowitz / pjscrape

A web-scraping framework written in Javascript, using PhantomJS and jQuery
http://nrabinowitz.github.io/pjscrape/
MIT License
997 stars 159 forks source link

How to download files with pjscrape? #40

Open CamiloMM opened 10 years ago

CamiloMM commented 10 years ago

This project is really great, and easy to set up and get started with.

So I've once used it do download files, by getting their URLs, but now I'm facing the problem that the URLs (to images) are tied to a session, and I can't just grab their URLs and get them later anymore. Ideally I should grab them while I scrape.

So, how can I download files from within the scraper (maybe with some writer other than JSON or STDOUT)? Is it even possible to use pjscrape to download files?