猿问

通过指定两个内容在表中找到漂亮的汤链接

我如何获得生成的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 BeautifulSoup

from bs4.element import Comment

import requests


date='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


鸿蒙传说
浏览 165回答 1
1回答
随时随地看视频慕课网APP

相关分类

Python
我要回答