Skip to content

Commit

Permalink
0.1.6 - cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Apr 3, 2021
1 parent 7f6718f commit 4ad7212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions youtube_searcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4ad7212

Please sign in to comment.