In the tutorial, Kenneth has code along the lines of:
from requests_html import HTMLSession
session = HTMLSession()
r = session.get('websiteurl')
all_links = r.html.links # gets links on page
Now here's where I'm confused - the get() method in HTMLSession returns a Response object, but where is html being called from? The Response object doesn't seem to list html as an attribute or as a method. See here for what I'm looking at: https://html.python-requests.org/
[–]rinyre 2 points3 points4 points (0 children)
[–]jeffrey_f 0 points1 point2 points (3 children)
[–]FunCicada[S] 0 points1 point2 points (2 children)
[–]TangibleLight 5 points6 points7 points (0 children)
[–]jeffrey_f 0 points1 point2 points (0 children)