I'm learning Python, and I'm trying to request access to a website using the command requests. I'm doing the following:
import requests
requests.get("http://www.charitystars.com")
However I get <Response [504]>
, which should be an error because the soup command soup = BeautifulSoup(r.content)
returns an empty line. I tried with other websites and I get <Response [200]>
, and the soup works. So I wonder why the command doesn't work on the first website, and what Response 504 actually means.