diff --git a/data.json b/data.json index 99b335c2..968029f0 100644 --- a/data.json +++ b/data.json @@ -1500,5 +1500,15 @@ "urlMain": "https://segmentfault.com/", "username_claimed": "bule", "username_unclaimed": "noonewouldeverusethis7" + }, + "Zomato": { + "errorType": "status_code", + "url": "https://www.zomato.com/{}/foodjourney", + "urlMain": "https://www.zomato.com/", + "username_claimed": "deepigoyal", + "username_unclaimed": "noonewouldeverusethis7", + "headers" : { + "Accept-Language": "en-US,en;q=0.9" + } } -} \ No newline at end of file +} diff --git a/sherlock.py b/sherlock.py index f905413d..12d3cf7a 100755 --- a/sherlock.py +++ b/sherlock.py @@ -189,13 +189,15 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr # Record URL of main site results_site['url_main'] = net_info.get("urlMain") - - # A user agent is needed because some sites don't return the correct information since they think that - # we are bots + + # A user agent is needed because some sites don't return the correct + # information since they think that we are bots (Which we actually are...) headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0', } + if "headers" in net_info: + #Override/append any extra headers required by a given site. headers.update(net_info["headers"]) # Don't make request if username is invalid for the site