我如何獲得生成的URL:https : //www.sec.gov/Archives/edgar/data/1633917/000163391718000094/0001633917-18-000094-index.htm...從此頁面...https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0001633917&owner=exclude&count=40...通過指定date = '2018-04-25,我要8-k申請嗎?我是否循環播放,還是有一個班輪代碼可以獲取結果?from bs4 import BeautifulSoupfrom bs4.element import Commentimport requestsdate='2018-04-25'CIK='1633917'url = 'https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=' + CIK + '&owner=exclude&count=100'r = requests.get(url)soup = BeautifulSoup(r.text,'html.parser')a=soup.find('table', class_='tableFile2').findAll('tr')for i in a: print i
添加回答
舉報
0/150
提交
取消