ruipgil / scraperjs

A complete and versatile web scraper.
MIT License
3.71k stars 188 forks source link

Feature: Adding the posibility to chose viewport size or any page option when using DynamicScrapper #54

Closed maissani closed 8 years ago

maissani commented 8 years ago

Hi,

As you know changing viewport size is important when scrapping directly maps or anything that depends on screen width. WIth scrapperjs we can't modify page.viewport options, Can you add the possibility to change it by adding a page.viewport or a dinamic merge option into page var on Dynamic Scrapper.

Thanx

ruipgil commented 8 years ago

You can pass options to phantomjs.

Just pass one extra object as argument and that object will be used as the options object when instantiating the page. Take a look at the constructor and the helper method.