解决AndroidFileHost无法下载问题

AndroidFileHost是一个国外的免费Android文件存储站,很多大佬都把自己做的一些ROM或者Android工具包一类的东西都放在上面,但是国内访问点击下载按钮没反应。博主写了一个Python小工具,分享给大家使用,链接:(GitHub)使用例如下:

root@localhost:~ # ./afh.py
Input fid:14871746926876821021
Server name: Germany - mDE1
Download link: https://mDE1.androidfilehost.com/dl/43KKBYLcbHJGVCpWkJN1LQ/1674391540/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

Server name: Oregon, USA - mOR1
Download link: https://mOR1.androidfilehost.com/dl/43KKBYLcbHJGVCpWkJN1LQ/1674391540/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

Server name: United Kingdom - mGB1
Download link: https://mGB1.androidfilehost.com/dl/43KKBYLcbHJGVCpWkJN1LQ/1674391540/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

Server name: Virginia, USA - aVA4
Download link: https://aVA4.androidfilehost.com/dl/5DMpMz1J6J8Yg_5VmQ_iJA/1674391541/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

Server name: Virginia, USA - mVA1
Download link: https://mVA1.androidfilehost.com/dl/5DMpMz1J6J8Yg_5VmQ_iJA/1674391541/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

Server name: Virginia, USA - mVA2
Download link: https://mVA2.androidfilehost.com/dl/5DMpMz1J6J8Yg_5VmQ_iJA/1674391541/14871746926876821021/AOSP13-20220907-KonstaKANG-rpi4.zip

root@localhost:~ # 

如果报错No module named 'requests',运行下面命令:

pip3 install requests

其中那个ID就是下载页面URL后面的那个fid。比如https://androidfilehost.com/?fid=746010030569961110,id就是746010030569961110。获取到链接之后使用wget,curl,aria2c等工具都可下载。

猜你喜欢

转载自blog.csdn.net/CNflysky/article/details/128747384
今日推荐