ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
5.82k stars 138 forks source link

Platform Exception when adding download page containing download link to apk #717

Open BhaturaGuy opened 11 months ago

BhaturaGuy commented 11 months ago

https://liteapks.com/download/adguard-819/1

Screenshot_2023-07-26-15-51-01-01_a13e17678c56528bd2f18fcaaa8af4ba

ImranR98 commented 11 months ago

For some reason, sending a request to the APK URL (https://cloud.liteapks.com/download/AdGuard/AdGuard%20v4.2.8%20[Premium].apk) returns an HTML page instead of an APK. Obtainium is expecting an APK and tries to "install" it, resulting in this error.

It looks like they've put something in place to prevent this kind of web scraping (not sure what exactly). You only get an APK if you click the link on their page. #709 is similar.

So this isn't a bug. It would require a more sophisticated way of grabbing the APK to get around their requirements.