我已经创建了一个汤&使用find_all方法隔离了我想要的所有数据。但是,我需要的字符串是在汤中进一步嵌套的。我知道find_all返回一个列表,但我需要进一步提取列表才能得到我所需要的。我对编码世界很陌生,对Python有相当的理解,但对Beautiful只有基本的理解。.) # importing the url I want to work over
soup = BeautifulSoup(URL.text, 'html.parser'
尝试使用Beautifulsoup从website.However中提取数据当我使用find_all函数时,我只得到目标元素( li )的一个子集,所以在本例中,不是获得24个li项,而是只返回12个www.tomford.com/beauty/lips/'reqs = requests.get(url,headers)
soup= Be
line 2160, in __getattr__AttributeError: ResultSet object has no attribute 'find_allDid you call find_all() when you meant to call find()? 我尝试根据消息将find替换为find_all,但这并没有改变返回的错误。en.wikipedia.org/wiki/2020%E2%80%9321_Top_14_s