Why doesn't requests.get output anything?
Completely new to python and programming in principle
I took spotify as an example, I want to display its html. When the interpreter starts, nothing is output. What to do?
import requests def loginbot(): r = requests.get('https://accounts.spotify.com/ru/login') print (r.text)Python Benjamin Payne, Dec 28, 2019
For two related reasons: you didn't read the tutorial and, as a result, you didn't call the loginbot function.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!