BS4刮板规格

我希望你们一直健康

我想使用BS4抓取更具体的表。这是我的代码:

from bs4 import BeautifulSoup
import requests


url = 'https://kemenperin.go.id/direktori-perusahaan?what=&prov=&hal=1'
page = requests.get(url)
soup = BeautifulSoup(page.text, 'lxml')

for row in soup.select('tbody tr'):
    row_text = [x.text for x in row.find_all('td')]
    print (row_text)

您如何获得这样的结果:

    Number, Name, address, telp, komoditi
1, "ABON JUARA" JUARA FOOD INDUSTRY, Jl. Jend Sudirman 339, Salatiga, Jawa Tengah, 0298-324060, Abon Sapi Dan Ayam

并保存为CSV