Results.get (url) showing whitespace in Python 3.6

Below script returns empty,

import requests
r = requests.get('http://fortune.com/fortune500/amazon-com/')
r.text

      

My actual intention is that I want to extract Income ($ M), Profit ($ M), Assets ($ M) and other useful information available in the link above. Please direct me to do the same.

+3


source to share





All Articles