Skip to content

Tag: request

Not able to download a file through request in python

When I try to download a file online it doesn’t work for a particular site while it works for others. Why is this happening and what should I do about it? I write the content of the dl request in my case https://drivers.amd.com/drivers/amd-software-adrenalin-edition-22.11.1-win10-win11-nov15.exe (warnin…

Save Images with orginal name

I have script to download images from website. But it’s saves name with ‘images1, images2, images3, images4 etc’ I need to save images with orginal name. If the images name 43343.jpg i need to save with 43343.jpg I use beautifulsoup and requests for this case. Sorry my english. It’s no…

How to get json text by request with header details?

I would like to go to page https://losoviny.iamroot.eu/part_one and write json text from there. End at first I must login in https://losoviny.iamroot.eu/part_one_login and use details in header. But if If I run code I see: raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decod…