diff --git a/tubearchivist/home/src/index.py b/tubearchivist/home/src/index.py index 517df18..a4baeff 100644 --- a/tubearchivist/home/src/index.py +++ b/tubearchivist/home/src/index.py @@ -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: