1>>> from requests_html import AsyncHTMLSession
2>>> asession = AsyncHTMLSession()
3
4>>> async def get_pythonorg():
5... r = await asession.get('https://python.org/')
6
7>>> async def get_reddit():
8... r = await asession.get('https://reddit.com/')
9
10>>> async def get_google():
11... r = await asession.get('https://google.com/')
12
13>>> result = session.run(get_pythonorg, get_reddit, get_google)
14
1>>> about.attrs
2{'id': 'about', 'class': ('tier-1', 'element-1'), 'aria-haspopup': 'true'}
3
1>>> from requests_html import HTMLSession
2>>> session = HTMLSession()
3
4>>> r = session.get('https://python.org/')
5
1>>> about.find('a')
2[<Element 'a' href='/about/' title='' class=''>, <Element 'a' href='/about/apps/' title=''>, <Element 'a' href='/about/quotes/' title=''>, <Element 'a' href='/about/gettingstarted/' title=''>, <Element 'a' href='/about/help/' title=''>, <Element 'a' href='http://brochure.getpython.info/' title=''>]
3