Skip to main content

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

收费代理

https://cheapproxy.net/

代码更新管理脚本备注

# 克隆项目
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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

akshare_proxy-1.17.88-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file akshare_proxy-1.17.88.tar.gz.

File metadata

  • Download URL: akshare_proxy-1.17.88.tar.gz
  • Upload date:
  • Size: 852.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for akshare_proxy-1.17.88.tar.gz
Algorithm Hash digest
SHA256 78d6319fd370b91805a8d3ba4f2973be613770eee51a98a950da83dc13a3523e
MD5 fa74431288547e1285f1335cb2a3dd15
BLAKE2b-256 b1ee3e940ab1ec278ad53934a8c7b04dbb8e71f36e49c871a5cec7c9696690fb

See more details on using hashes here.

File details

Details for the file akshare_proxy-1.17.88-py3-none-any.whl.

File metadata

File hashes

Hashes for akshare_proxy-1.17.88-py3-none-any.whl
Algorithm Hash digest
SHA256 d92cb9b301982915fbed46530ef5512322baca58acf6f19f8e83e24d7eac61c9
MD5 b430c34c62758c12dc00ee942ab0d7fa
BLAKE2b-256 49f61d087dda16a5db5920f554acc7f89c5d307c379952f147d014428038cee5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page