I hurt my nose to a cookie agreement page...
What I am doing:
import requests
url = "https://stockhouse.com/community/bullboards/"
r = requests.get(url)
soup = BeautifulSoup(r.content, "html.parser")
print(soup)
which returns HTML from a cookie agreement page. What I am then looking for is to bypass this page and scrape the content of the actual page once we accept the cookies...
I tried the code from this question:
cookies = dict(BCPermissionLevel='PERSONAL')
html = requests.get(website, headers={"User-Agent": "Mozilla/5.0"}, cookies=cookies)
but I still get the html from the cookie page.
Note: I succeeded using Selenium, but selenium is a is very inefficient last recourse...