#coding:utf8

u"""东方财富网-财报分析工具
http://quote.eastmoney.com"""
import lxml
from lxml import etree
import requests
id='sh600069'
base_url='http://f10.eastmoney.com/NewFinanceAnalysis/PercentAjax_Indx?code='


#百分比报表
percent_url='http://f10.eastmoney.com/NewFinanceAnalysis/PercentAjax?code={}&ctype=4&type=0'.format(id)

def get_datas(url):
u"""主要指标"""
html_str=requests.get(url)
html_str=html_str.text
html = etree.HTML(html_str)
print html_str
p_str = html.xpath('//*[@]/table/tbody/tr[2]/td[2]/span')

print p_str


def use_datas():
pass

# F10MainTargetDiv
get_datas(base_url+id)

相关文章:

  • 2021-05-23
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-09-01
  • 2021-10-13
  • 2021-06-15
猜你喜欢
  • 2022-01-04
  • 2021-06-05
  • 2022-01-01
  • 2022-01-14
  • 2021-09-01
相关资源
相似解决方案