从东方财富爬取上市公司财务信息的代码;法律规定每年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.
 
lijunhui 6133dcb014 Initial commit 10 months ago
.idea Initial commit 10 months ago
README.txt Initial commit 10 months ago
eastmoney.py Initial commit 10 months ago
eastmoney_getcompany.py Initial commit 10 months ago
import_finance.py Initial commit 10 months ago
stock_code.csv Initial commit 10 months ago

README.txt

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将数据导入数据库中。