I'm collecting some website meta-data. Some websites provide a local version based on my location, can I avoid this?
Here's what I'm currently doing:
import requests
from bs4 import BeautifulSoup
source = requests.get('http://www.youtube.com').text
source_soup = BeautifulSoup(source, 'lxml')
current_description = source_soup.find_all('meta', attrs={'name': 'description'})
print(current_description)
The result is get is:
[<meta content="Auf YouTube findest du großartige Videos und erstklassige Musik. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder mit der ganzen Welt teilen." name="description"/>]
This is what I want, but for the German version of the website. I'd like to have the English version to avoid dealing with different languages if at all possible. Since I want to scrape many different websites, I practically can't manually change the URLs to force English language or anything like that.
Is there a solution with the request module? My only other idea is to use a VPN, but that seems cumbersome.