nikhilbadyal / docker-py-revanced

One Click Python util to build all Revanced apps.
https://nikhilbadyal.github.io/docker-py-revanced/
GNU General Public License v3.0
548 stars 423 forks source link

Error downloading files from apkmirror #103

Closed mosin closed 1 year ago

mosin commented 1 year ago

It seems like they are using Cloudflare to block connections. Is there anyway I can manually download the apk file?

Thanks

nikhilbadyal commented 1 year ago

Please share the logs. I want to see the error message.

In any case, I would like to have this as an enhancement. Users should be able to provide apk if they want, instead of script downloading it from apkmirror.

mosin commented 1 year ago

Here's the output when running python main.py:

2022-12-20 19:24:47.048 | DEBUG | src.patches:check_java:43 - Checking if java is available 2022-12-20 19:24:47.095 | DEBUG | src.patches:check_java:54 - Cool!! Java is available 2022-12-20 19:24:47.095 | DEBUG | src.patches:fetch_patches:64 - fetching all patches 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:108 - Total patches in youtube are 47 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:108 - Total patches in youtube-music are 10 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:111 - Total patches in reddit are 2 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:111 - Total patches in tiktok are 9 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:111 - Total patches in twitter are 3 2022-12-20 19:24:47.524 | DEBUG | src.patches:fetch_patches:111 - Total patches in warnwetter are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in spotify are 3 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in nyx-music-player are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in icon-pack-studio are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in ticktick are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in twitch are 6 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in hex-editor are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in citra are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in citra are 0 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in windy are 1 2022-12-20 19:24:47.525 | DEBUG | src.patches:fetch_patches:111 - Total patches in my-expenses are 1 2022-12-20 19:24:47.526 | DEBUG | src.patches:fetch_patches:111 - Total patches in backdrops are 1 2022-12-20 19:24:47.526 | DEBUG | src.patches:fetch_patches:111 - Total patches in sleep are 0 2022-12-20 19:24:47.526 | DEBUG | src.patches:fetch_patches:111 - Total patches in expensemanager are 1 2022-12-20 19:24:47.527 | DEBUG | src.downloader:download_revanced:204 - Deleting old changelog.md 2022-12-20 19:24:47.528 | DEBUG | src.downloader:repository:189 - Trying to download revanced-cli from github 2022-12-20 19:24:47.530 | DEBUG | src.downloader:repository:189 - Trying to download revanced-integrations from github 2022-12-20 19:24:47.531 | DEBUG | src.downloader:repository:189 - Trying to download revanced-patches from github 2022-12-20 19:24:47.531 | DEBUG | src.downloader:repository:189 - Trying to download VancedMicroG from github 2022-12-20 19:24:48.050 | DEBUG | src.downloader:_download:32 - Trying to download VancedMicroG-output.apk from https://github.com/inotia00/VancedMicroG/releases/download/v0.2.25.224113-224113003/microg-google-icon.apk 2022-12-20 19:24:48.051 | DEBUG | src.downloader:_download:32 - Trying to download revanced-patches.jar from https://github.com/revanced/revanced-patches/releases/download/v2.146.0/revanced-patches-2.146.0.jar 2022-12-20 19:24:48.053 | DEBUG | src.downloader:_download:32 - Trying to download revanced-cli.jar from https://github.com/revanced/revanced-cli/releases/download/v2.18.2/revanced-cli-2.18.2-all.jar 2022-12-20 19:24:48.058 | DEBUG | src.downloader:_download:32 - Trying to download revanced-integrations.apk from https://github.com/revanced/revanced-integrations/releases/download/v0.84.2/app-release-unsigned.apk revanced-integrations.apk: 100%|█████████████████████████████████████████████| 144k/144k [00:00<00:00, 1.29MiB/s] 2022-12-20 19:24:49.107 | DEBUG | src.downloader:_download:50 - Downloaded revanced-integrations.apk<?, ?iB/s] revanced-patches.jar: 100%|████████████████████████████████████████████████| 1.29M/1.29M [00:00<00:00, 5.56MiB/s] 2022-12-20 19:24:49.287 | DEBUG | src.downloader:_download:50 - Downloaded revanced-patches.jar:00, 5.58MiB/s] VancedMicroG-output.apk: 100%|█████████████████████████████████████████████| 10.5M/10.5M [00:01<00:00, 9.67MiB/s] 2022-12-20 19:24:50.368 | DEBUG | src.downloader:_download:50 - Downloaded VancedMicroG-output.apk revanced-cli.jar: 100%|████████████████████████████████████████████████████| 40.5M/40.5M [00:02<00:00, 20.7MiB/s] 2022-12-20 19:24:51.161 | DEBUG | src.downloader:_download:50 - Downloaded revanced-cli.jar 2022-12-20 19:24:51.161 | INFO | src.downloader:download_revanced:223 - Downloaded revanced microG ,cli, integrations and patches. 2022-12-20 19:24:51.161 | INFO | __main__:main:23 - Will Patch only ['youtube'] 2022-12-20 19:24:51.162 | INFO | __main__:main:26 - Trying to build youtube 2022-12-20 19:24:51.162 | DEBUG | src.patches:get:124 - Getting patches for youtube 2022-12-20 19:24:51.162 | DEBUG | src.patches:get:153 - Recommended Version for patching youtube is 17.49.37 2022-12-20 19:24:51.162 | DEBUG | src.downloader:apkmirror_specific_version:142 - Trying to download youtube,specific version 17.49.37 2022-12-20 19:24:51.400 | ERROR | src.downloader:get_download_page:87 - Unable to find any apk on apkmirror_specific_version on https://www.apkmirror.com/apk/google-inc/youtube/youtube-17-49-37-release/ NoneType: None

nikhilbadyal commented 1 year ago

@mosin Can you checkout to this branch provide-apk in your local and test by providing an apk manually. If you want to know the exact steps please let me know.

See Point 13 in README.md. To see how to provide apks manually.

nikhilbadyal commented 1 year ago

I have tested and it's working as expected. Please open a new issue. If still doesn't work.