diff --git a/setup.py b/setup.py index 3f2c2fe..6414d66 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='youtube_searcher', - version='0.1.5', + version='0.1.6', packages=['youtube_searcher'], url='https://github.com/HelloChatterbox/youtube_searcher', license='Apache', diff --git a/youtube_searcher/__init__.py b/youtube_searcher/__init__.py index 834a526..0b60b26 100644 --- a/youtube_searcher/__init__.py +++ b/youtube_searcher/__init__.py @@ -18,6 +18,7 @@ def search_youtube(query, location_code="US", # TODO dont cache if no results found html = session.get(base_url + "/results", + cookies={'CONSENT': 'PENDING+999'}, headers=headers, params=params).text soup = bs4.BeautifulSoup(html, 'html.parser')