AKShare is an elegant and simple financial data interface library for Python, built for human beings!
Project description
Akshare 引入 Proxy 代理解决 IP 被限问题
安装部署
# 安装python安装工具
pip install setuptools
pip install
python setup.py check
python setup.py sdist bdist_wheel
twine upload dist/*
twine upload --repository testpypi dist/*
twine upload --repository pypi dist/*
pip install akshare-proxy==1.17.87.dev0
pip install --upgrade --index-url https://test.pypi.org/simple/ akshare-proxy==1.17.87.dev2
## 本地调试安装
pip install .
验证安装
import akshare as ak
print(ak.__version__)
代理配置
from akshare.utils.context import AkshareConfig
import akshare as ak
""" 创建代理字典 """
proxies = {
"http": "http://xxx.con:xxx",
"https": "https://xxx.con:xxx"
}
""" 创建代理字典 """
AkshareConfig.set_proxies(proxies)
stock_sse_summary_df = ak.stock_sse_summary()
print(stock_sse_summary_df)
IP 代理搭建
免费代理
https://github.com/AlexLiue/proxy_pool
收费代理
代码更新管理脚本备注
# 克隆项目
git clone https://github.com/AlexLiue/akshare.git
# 查看分支
git remote -v
# 添加上游仓库地址
git remote add upstream https://github.com/akfamily/akshare.git
# 合并上游更新到本地项目 (先本地创建合并分支,然后合并)
git checkout develop
git fetch upstream
git merge upstream/main
# 提交
git add .
git commit -m '20250401'
# 合并更新到主分支
git checkout main
git pull origin main
git merge develop
# 提交主分支
git add .
git commit -m '20250401'
git tag v0.0.1
git push origin master
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
akshare_proxy-1.17.88.tar.gz
(852.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters