Code Monkey home page Code Monkey logo

Comments (1)

albertandking avatar albertandking commented on June 16, 2024

stock_profit_sheet_by_yearly_em

欢迎加入《数据科学实战》知识星球,交流财经数据与量化投资相关内容,
详细信息参考:https://akshare.akfamily.xyz/learn.html

前提

遇到任何问题,请先将您的 AKShare 版本升级到最新版,可以通过如下命令升级:

pip install akshare --upgrade  # Python 版本需要大于等于 3.8

如何提交问题

提交问题的同时,请提交以下相关信息,以便于解决问题

详细描述遇到的问题

  1. 操作系统版本,目前只支持 64 位操作系统
  2. Python 版本,目前只支持 3.8 以上的版本
  3. AKShare 版本,请升级到最新版
  4. 接口的名称和相应的调用代码
import akshare as ak
import pandas as pd
stock_financial_analysis_indicator_df = ak.stock_profit_sheet_by_yearly_em(symbol="300670")
print(stock_financial_analysis_indicator_df)

5.接口报错的截图或代码 company_type = soup.find(attrs={"id": "hidctype"})["value"] TypeError: 'NoneType' object is not subscriptable 6.期望获得的正确结果 查看源码时发现:company_type = _stock_balance_sheet_by_report_ctype_em(symbol=symbol) url = "https://emweb.securities.eastmoney.com/PC_HSF10/NewFinanceAnalysis/lrbDateAjaxNew" params = { "companyType": company_type, "reportDateType": "1", "code": symbol, }中url失效 屏幕截图 2024-05-16 215850

接口正常,按说明文档使用

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.