6

I'm trying to download a file (a discord profile picture to be precise) using the Discord API to get the URL. however, the wget module in python returns a 403 forbidden. I would edit the source of the wget module, but don't know where the source is.

3
  • Try changing your user agent by adding the header User:Agent : Mozilla/5.0 or something along those lines? Commented Jul 2, 2017 at 12:56
  • 2
    Why wget? Why not requests? Much more straightforward. Commented Jul 2, 2017 at 12:57
  • 2
    seems it's not possible to add Headers using wget module. Use request or urllib3 instead stackoverflow.com/questions/645312/… Commented Oct 2, 2020 at 0:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.