data_analysis icon indicating copy to clipboard operation
data_analysis copied to clipboard

table和tr找不到

Open messi-fcb-10 opened this issue 6 years ago • 5 comments

def get_team_data(): qiudui_url = 'https://www.dongqiudi.com/data?competition=8' qiudui_res = requests.get(qiudui_url, headers=header, cookies=session).text content = BeautifulSoup(qiudui_res, 'html.parser') team_content = content.find('table').find_all('tr') team_list = list(map(deal_element_list, team_content[2:])) save_to_csv(team_list) print('get player data now...') for i in team_list: print("爬取url:", i[0]) get_players_urls(i[0])

messi-fcb-10 avatar Oct 12 '19 09:10 messi-fcb-10

把报错信息贴一下,我再看看

zhouwei713 avatar Oct 12 '19 09:10 zhouwei713

{D116D8E1-9012-4D98-A9B4-527F3457ADED} png

messi-fcb-10 avatar Oct 12 '19 09:10 messi-fcb-10

大佬,有没有解决方案

messi-fcb-10 avatar Oct 14 '19 01:10 messi-fcb-10

你好,懂球帝网站改版了,代码可能要修改下,等我后面更新吧 image

zhouwei713 avatar Oct 14 '19 03:10 zhouwei713

哈哈,p标签吗

---原始邮件--- 发件人: "zhouluobo"<[email protected]> 发送时间: 2019年10月14日(星期一) 中午11:17 收件人: "zhouwei713/data_analysis"<[email protected]>; 抄送: "hzh1105"<[email protected]>;"Author"<[email protected]>; 主题: Re: [zhouwei713/data_analysis] table和tr找不到 (#2)

你好,懂球帝网站改版了,代码可能要修改下,等我后面更新吧

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

messi-fcb-10 avatar Oct 14 '19 03:10 messi-fcb-10