我試圖從一個頁面結果使用BeautifulSoup來獲得:BeautifulSoup find_all限於50個結果?
req_url = 'http://www.xscores.com/soccer/livescores/25-02'
request = requests.get(req_url)
content = request.content
soup = BeautifulSoup(content, "html.parser")
scores = soup.find_all('tr', {'style': 'height:18px;'}, limit=None)
print(len(scores))
>50
我讀這之前的解決方案:Beautiful Soup findAll doen't find them all ,我試圖html.parser,LXML和html5lib,但他們沒有返回超過50結果。有什麼建議麼?
謝謝使用css-selector
查詢您
完美,謝謝! – StevenH