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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -