AttributeError: ResultSet object has no attribute 'find_all'

大城市里の小女人 提交于 2019-12-02 12:18:40

What i can see is when you call:

right_table=soup.find_all('table',{'class':'wikitable sortable plainrowheaders'})

the output of this command i.e right_table contains an array. You would need to call find_all on it's members(even though it has one element), not on entire thing.

So this line:

for row in right_table.find_all("tr"):

should be changed to:

for row in right_table[0].find_all("tr"):
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!