Jan-28-2018, 08:43 AM
I'm having a hard time deciphering the requests module documentation, so is there a way to do this in one statement:
// assume I've imported requests and defined variable url with a string value representing // a valid url raw_object = requests.get(url) extracted_text = raw_object.textAlso, when I use dir() on a requests.response object, I get a list of attributes and methods. Does that list vary depending on the data retrieved from the webpage accessed by requests.get(), or on different operating systems the running Python is installed on, provided that the version of Python is the same?