'How to scrape Javascript element from HTML source code?
How can I scrape the javascript element from http://www.asfinag.at/home? I think that the javascript element starts from items: in the source code of the page.
My current code looks like this:
import urllib.request
from bs4 import BeautifulSoup
url = 'http://www.asfinag.at/home'
req = urllib.request.Request (url)
opener = urllib.request.build_opener()
f = opener.open (req)
soup = BeautifulSoup (f)
tmp = soup.find_all(id="at-asfinag-pvis-pages-map-LayerPage-0")
print (tmp)
I don't know how to proceed. I basically need to scrape fields such as fahrtrichtung and meldequelle.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
