0

How to get a page showing information based on where I live to show information for another location?

I'm using chromedriver and selenium

I'm in Sri Lanka so whenever I start chromedriver and navigate to https://www.youtube.com/feed/trending it shows me the trending list for my country of Sri Lanka

How could I get the list for a different country, such as USA or India.

  • Seems to be this is not relevant to here. – ChathuD Jun 1 '18 at 4:58
  • May be i just have to change the location from the right side menu. – ChathuD Jun 1 '18 at 4:59
2

You can search for "popular in united states". This gives a channel that consists of trending videos for USA. The channel is: https://www.youtube.com/channel/UC4zkuKZ8MUpONVT0lDdyu7g

The same way you can search for "popular in india", which gives you this channel: https://www.youtube.com/channel/UCAh9DbAZny_eoGFsYlH2JZw

| improve this answer | |
1

Have you tried googling it? I get results like this: https://www.quora.com/How-do-I-change-my-trending-location-in-YouTube

| improve this answer | |
1

When I've tested application that use Geolocation, I've always used a proxy service, like WonderProxy, to route traffic to the country I need to test in. This means I don't have to worry about my tests (automated or exploratory) failing due to me being unable to set the proper location. I've built these into my automated GUI tests using Selenium, using the proxy API and then it just works.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.