Git Product home page Git Product logo

Comments (5)

JiangJamm avatar JiangJamm commented on September 26, 2024

get_futures_daily更新到最新版可使用

from akshare.

cedric-cao avatar cedric-cao commented on September 26, 2024

get_futures_daily更新到最新版可使用
我刚在closed的issue中看到了您的相关修改,但是有个小问题,https://tsite.shfe.com.cn/是上期所的旧网址,会不会过一段时间就被废弃了

from akshare.

albertandking avatar albertandking commented on September 26, 2024
  1. win11
  2. Python3.10.9
  3. AKShare 1.12.80
  4. get_futures_daily
  5. 接口报错没有数据,经过尝试发现是关于上期所的部分无法获取数据,同时联想到5月11日上期所官网进行了大改版,感觉应当是url进行了大改。
    经过搜寻源代码和观察上期所官网源代码,发现应当将 D:\Anaconda\Lib\site-packages\akshare\futures\cons.py文件的 SHFE_DAILY_URL = "http://www.shfe.com.cn/data/dailydata/kx/kx%s.dat" 修改为 SHFE_DAILY_URL = "https://www.shfe.com.cn/data/tradedata/future/dailydata/kx%s.dat"
    经过尝试,问题解决
    供各位好兄弟参考
  1. win11
  2. Python3.10.9
  3. AKShare 1.12.80
  4. get_futures_daily
  5. 接口报错没有数据,经过尝试发现是关于上期所的部分无法获取数据,同时联想到5月11日上期所官网进行了大改版,感觉应当是url进行了大改。
    经过搜寻源代码和观察上期所官网源代码,发现应当将 D:\Anaconda\Lib\site-packages\akshare\futures\cons.py文件的 SHFE_DAILY_URL = "http://www.shfe.com.cn/data/dailydata/kx/kx%s.dat" 修改为 SHFE_DAILY_URL = "https://www.shfe.com.cn/data/tradedata/future/dailydata/kx%s.dat"
    经过尝试,问题解决
    供各位好兄弟参考

已修复该问题,升级到 AKShare 1.13.72 使用

from akshare.

bruce198982 avatar bruce198982 commented on September 26, 2024

为啥 我改了 还是报错啊?
经过搜寻源代码和观察上期所官网源代码,发现应当将 D:\Anaconda\Lib\site-packages\akshare\futures\cons.py文件的 SHFE_DAILY_URL = "http://www.shfe.com.cn/data/dailydata/kx/kx%s.dat" 修改为 SHFE_DAILY_URL = "https://www.shfe.com.cn/data/tradedata/future/dailydata/kx%s.dat"

from akshare.

JiangJamm avatar JiangJamm commented on September 26, 2024

get_futures_daily更新到最新版可使用
我刚在closed的issue中看到了您的相关修改,但是有个小问题,https://tsite.shfe.com.cn/是上期所的旧网址,会不会过一段时间就被废弃了

感觉有可能,但是这是一个比较高效的过渡解决方法了,欢迎提pr呀

from akshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.