Skip to content

Commit

Permalink
Merge pull request #38 from twissell-/master
Browse files Browse the repository at this point in the history
Fix JSONDecodeError on get_channel from EU countries
  • Loading branch information
dermasmid authored Sep 3, 2023
2 parents 0b30906 + e3bf7dd commit 73b37fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapetube/scrapetube.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_session() -> requests.Session:

def get_initial_data(session: requests.Session, url: str) -> str:
session.cookies.set("CONSENT", "YES+cb", domain=".youtube.com")
response = session.get(url)
response = session.get(url, params={"ucbcb":1})

html = response.text
return html
Expand Down

0 comments on commit 73b37fd

Please sign in to comment.