mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
fixing cookie consent issue for EU countries
This commit is contained in:
parent
33e0f826c9
commit
f8b5b7c5bb
@ -63,7 +63,10 @@ class YoutubeChannel:
|
|||||||
""" scrape channel page for additional infos """
|
""" scrape channel page for additional infos """
|
||||||
channel_id = self.channel_id
|
channel_id = self.channel_id
|
||||||
url = f'https://www.youtube.com/channel/{channel_id}/about?hl=en'
|
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:
|
if response.ok:
|
||||||
channel_page = response.text
|
channel_page = response.text
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user