从东方财富爬取上市公司财务信息的代码;法律规定每年4月30日前所有上市公司必须公布年度财报,所以在5月之后去爬就行
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

473 B

1.先到东方财富终端导出股票代码以及股票名称,保存到stock_code中;
2.执行eastmoney_getcompany.py,获得公司名称company.csv;
3.执行eastmoney.py,获得公司详细财务信息company_finance_details.csv,其中由于某些公司css布局会有特殊情况采集不到,会收集到company_error.csv中,需要修改css代码重新爬取或者手动采集;
4.整理好数据后,执行import_finance.py将数据导入数据库中。