Posted on:

26 Feb 2022

0

SyntaxError: 'await' outside function

I am using spyder 5 with python 3.7 and this dont run.

from requests_html import AsyncHTMLSession
session=AsyncHTMLSession()
r=await session.get('https://www.reddit.com/')
divs=r.html.find('div')

0 answers ( 0 marked as helpful)

Submit an answer