一、下载Python
首先需要下载Python才能执行脚本,Windows下载地址为
https://www.python.org/ftp/python/3.10.4/python-3.10.4-amd64.exe
二、安装环境
安装好Python后,使用命令行工具python -V
查看是否能够显示python版本号
三、更换pip源为国内
windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,然后新建文件pip.ini,即 %HOMEPATH%\pip\pip.ini,在pip.ini文件中输入以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn
mac或者Linux下修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)
内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
四、安装所需要的库
pip3 install ddddocr
pip3 install requests
五、运行脚本
python appstore.py
六、使用说明
applecard.txt存放appstore卡号文件,一行一个
applecard_resp.txt 是输出结果文件
项目地址
https://github.com/wh-2020/shop-card
温馨提示:本工具仅为个人学习测试使用请在下载后24小时内删除,不得用于商业用途否则后果自负
正文完