Forums

Getting 403 for reddit

Hey, I'm trying to access Reddit using this url:

url = "https://www.reddit.com/r/books/"

I'm using the requests library:

response = requests.get(url, proxies=proxies)

tried with and without the proxies.

Getting a 403.

<Response [403]>

I see reddit is on the Whitelist, so what could the problem?

Thanks!

That might be coming from Reddit itself -- is there anything useful in the contents of the response that you get?