I
I
Inoyatullo2021-01-02 18:36:07
Python
Inoyatullo, 2021-01-02 18:36:07

How to download file via link in Python?

There is a site with files, but there are unusual links for downloading the file (does not end with .apk)
Example: https://s2020-05.androeed.ru/get_file.php?url=YUhS...
( Shortened) and if through requests does not work. I thought you can use selenium for the browser, but will it run on vps before, I somehow worked with selenium and when I uploaded the script to the vps, it gave an error related to the monitor. How can I resolve this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2021-01-02
@Khaliknazar

URL is base64
encoded

YUhSMGNITTZMeTl6TWpBeU1DMHdOUzVoYm1SeWIyVmxaQzV5ZFM5bWFXeGxjeTh5TURJeEx6RXlMekkzTDNSeVlXWm1hV05qYjNBelpDMHhOalF3TlRZNU9UZ3hMWGQzZHk1aGJtUnliMlZsWkM1eWRTNWhjR3M9fDE2NDExMzg0MjN8MzA=

decoded
aHR0cHM6Ly9zMjAyMC0wNS5hbmRyb2VlZC5ydS9maWxlcy8yMDIxLzEyLzI3L3RyYWZmaWNjb3AzZC0xNjQwNTY5OTgxLXd3dy5hbmRyb2VlZC5ydS5hcGs=|1641138423|30

Inside - base64 direct download link, timestamp and link expiration time
Decoded
https://s2020-05.androeed.ru/files/2021/12/27/trafficcop3d-1640569981-www.androeed.ru.apk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question