Git Product home page Git Product logo

Comments (5)

JiangJamm avatar JiangJamm commented on September 26, 2024

发现不管传入什么,返回的都是达利食品。尝试添加headers和cookies无法解决
image

from akshare.

Dbgsaoge avatar Dbgsaoge commented on September 26, 2024

发现不管传入什么,返回的都是达利食品。尝试添加headers和cookies无法解决 image

你这个是在windows下跑的吗,它默认的symbol就是300059,我现在直接就报错keyerror然后就结束了

from akshare.

albertandking avatar albertandking commented on September 26, 2024

详细描述遇到的问题

  1. 操作系统版本: windows11
  2. Python 版本,3.10.9
  3. AKShare 版本,1.13.76
  4. 接口的名称:
    keyword = "300059"
    stock_news_em_df = ak.stock_news_em(symbol=keyword)
    Y7W {9365)YJTNGKT79N906

接口不能正常调用

接口测试正常

from akshare.

onceCWJ avatar onceCWJ commented on September 26, 2024

@Dbgsaoge 哥们确实可以,我在windows上不行,但是在linux上就可以了感觉不是接口的问题?

from akshare.

JiangJamm avatar JiangJamm commented on September 26, 2024

进行以下不完全测试及尝试:

  1. 尝试使用postman用相同params能够正确获取,但是使用Python无法正确获取(mac)
  2. 更换不同网络环境下的Windows电脑,能够正确获取
  3. 将https更改为http可以正确获取
  4. 使用https,并更改为
 r = requests.get(url, params=params, verify=False)

无法正确获取

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.