Ich habe Arbeitgeber IDs bekam, das Gebiet zu bekommen, das Geschäft genutzt werden können:Scrape Amerikas Career InfoNet
https://www.careerinfonet.org/employ4.asp?emp_id=558742391
Die HTML enthält die Daten in tr/td Tabellen:
Business Description: Exporters (Whls) Primary Industry:Other Miscellaneous Durable Goods Merchant Wholesalers Related Industry:Sporting and Athletic Goods Manufacturing
So würde ich gerne bekommen
- Exporteure (Whls)
- Andere Sonstiges Durable Goods Großhandelsunter
- Sporting und Produktion Sportwaren sieht
Mein Beispiel-Code wie folgt aus:
import requests
from bs4 import BeautifulSoup
page = requests.get("https://www.careerinfonet.org/employ4.asp?emp_id=558742391")
soup = BeautifulSoup(page.text, 'html.parser')
div = soup.find('td', class_='content')
for td in div.find_all('td'):
print(td.text)
Danke, ich bin sehr dankbar. Kannst du bitte auch einen Blick auf https://stackoverflow.com/questions/47212951/scrape-wood-industry-database-with-beautifulsoup werfen? –