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.
Asked
Active
Viewed 4,014 times
6
-
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
-
2Why wget? Why not requests? Much more straightforward. – erip Jul 02 '17 at 12:57
-
2seems 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