'Problem scraping web page for different information
I'm having trouble scraping the elements on this web page e.g. the heading (h4).
https://www.jnjmedtech.com/en-US/search-company?search_api_fulltext=10439011
The code looks like this. I'm not getting an error, but the result shows 'none', when I try to scrape this part of the web page.
## Extracting heading as Produkttitel
try:
Produkttitel = data.find("div", {"class": "jnjmdc-search-result-content"}).find("h4")
print(Produkttitel)
element_list["Produkttitel"].append(Produkttitel.text)
except:
element_list["Produkttitel"].append("None")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
