Thursday, January 29, 2009

How to download financial statements from the SEC

http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=IBM&type=10-Q&dateb=&owner=include&start=0&count=100&output=atom

1) parse xml for 10-Q document list links
2) curl each 10-Q document list page and parse for 10-Q html document
3) parse 10-Q html document for financial data


Complicating matters...10-Q forms are not the same for every company!!!

http://www.sec.gov/Archives/edgar/data/51143/000110465908066201/a08-26479_110q.htm

http://www.sec.gov/Archives/edgar/data/21344/000104746908011110/a2188581z10-q.htm

http://www.sec.gov/Archives/edgar/data/4962/000110465908067075/a08-25726_110q.htm

http://www.sec.gov/Archives/edgar/data/66740/000110465908067346/a08-25778_110q.htm

No comments:

Post a Comment