Heres my code:
with requests.Session() as s: r = s.get(url, headers=headers) soup = BeautifulSoup(r.text, \