Need your advice on python geo data scrapping from youtube data api

ibmjango

Senior Member
Joined
Jul 3, 2010
Messages
805
Reaction score
316
hello,
i am hobby programmer not professional but did enough work to make practical script for my own use, so here is one script where i am facing problem

i am trying to scrap youtube results for particular keyword i input, script is working fine but problem occur when i try to srap specifically for any country like i want to scrap for keyword "how to lose weight " and here i need all videos ranking for this keyword in USA country, and want to scrap same kind of data from UK country too so i suppose to receive different videos.

but in my case its resulting videos from india which is my original location.

i already tried with proxies and vpn both are not working.
so can you suggest how to solve this problem, i am using pycharm, even i tried on google colab still same results coming. i am getting results from india only.
here is sample code i am using

Countrycode="USA"
def search_youtube(query, max_pages=None, regionCode=Countrycode):

I am using youtube DATA api to fetch data.
can you suggest any work around for this?
 
You can take help with any scraping tool. there are many options available in the market
 
You can take help with any scraping tool. there are many options available in the market
this script is part of Saas tool i am developing so cant take scrapping service, i need to align with my script , if i will depend on other service then my tool can down anytime other service will go down.
 
can anyone help on this i am still waiting for solution if anyone had this kind of experience in past and can share here ?
 
Back
Top