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.

Anthon
  • 69,918
  • 32
  • 186
  • 246
BenTechy66
  • 102
  • 1
  • 9
  • Try changing your user agent by adding the header `User:Agent : Mozilla/5.0` or something along those lines? – cs95 Jul 02 '17 at 12:56
  • 2
    Why wget? Why not requests? Much more straightforward. – erip Jul 02 '17 at 12:57
  • 2
    seems it's not possible to add Headers using wget module. Use `request` or `urllib3` instead https://stackoverflow.com/questions/645312/what-is-the-quickest-way-to-http-get-in-python – Black Oct 02 '20 at 00:45

0 Answers0