我想提取表 url 是https://en.wikipedia.org/wiki/List_of_companies_of_Indonesia 我的代码没有提供数据。我们如何获得?
代码:
import requests
from bs4 import BeautifulSoup as bs
url = "https://en.wikipedia.org/wiki/List_of_companies_of_Indonesia"
html = requests.get(url).text
soup = bs(html, 'html.parser')
ta=soup.find_all('table',class_="wikitable sortable jquery-tablesorter")
print(ta)
梦里花落0921
慕田峪7331174
慕容708150
相关分类