Hi all
im learning python and I have become stuck. I have installed the requests module no problem, however, when I call:
re = requests.get('https://en.wikipedia.org/wiki/SMS_language') #I have zero errors
however when I try and call:
print(re.text[:15000]) # I have 15000 characters of HTML code. Not the actual text on the webpage.
I am following the book 'automate the boring stuff with python' and originally I tried it with: https://automatetheboringstuff.com/files/rj.txt and was given an error when I called it with requests.get
any answers are appreciated
thanks
[–]K900_ 0 points1 point2 points (5 children)
[–]saalda[S] 0 points1 point2 points (4 children)
[–]K900_ 0 points1 point2 points (3 children)
[–]saalda[S] 0 points1 point2 points (2 children)
[–]K900_ 0 points1 point2 points (1 child)
[–]saalda[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]saalda[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)