fixing cookie consent issue for EU countries

pull/12/head
simon 3 years ago
parent 33e0f826c9
commit f8b5b7c5bb

@ -63,7 +63,10 @@ class YoutubeChannel:
""" scrape channel page for additional infos """
channel_id = self.channel_id
url = f'https://www.youtube.com/channel/{channel_id}/about?hl=en'
response = requests.get(url)
cookies = {
'CONSENT': 'YES+xxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
response = requests.get(url, cookies=cookies)
if response.ok:
channel_page = response.text
else:

Loading…
Cancel
Save