node.js - NodeJS Web Scraper for region-specific content -
i'm building scraper in nodejs
, , i've come across issue can't figure out.
certain websites use location-specific content , i'd find way trigger/manipulate this.
off bat, know complicated issue. sites might use different methods determining user's location. there general way achieve this? i'm using node's request
module, , have headers set so:
'headers': { 'user-agent': 'mozilla/4.0 (compatible; msie 7.0; windows nt 6.0)' }
is there way of manipulating headers spoof location website?
there multiple methods used companies determine kind of content serve you.
big media organisations, bbc, use database mapping ip ranges geographical locations maintained private company. way defeat access protections use virtual server proxy in country wish appear visiting from.
other companies (many european ones) may interested in knowing language serve content in. may @ headers in web request.
Comments
Post a Comment