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
  • 59,987
  • 25
  • 170
  • 228
BenTechy66
  • 85
  • 1
  • 7
  • 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
  • 1
    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