nrabinowitz / pjscrape

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

How do you change the useragent? #34

Open necenzurat opened 11 years ago

necenzurat commented 11 years ago

searched my ass off and did not find a thing how do you change the useragent from the config file ?


pjs.config({ 
    userAgent : 'someuseragent'
}

am i missing somethig

sergeospb commented 11 years ago

It is should work: pjs.addSuite({ pageSettings: {'userAgent': 'Mozilla/5.0'}, }

waglik commented 10 years ago

Neither is working for me. Does anything changed?