# I want to get <h2>, 'Official website' and 'Address' from this website as a dataFrame using BeautifulSoup # I see the items 14 of them on the html source code pls help page_link = 'https://www.planetware.com/tourist-attractions-/oslo-n-osl-oslo.htm' # this is the url that we've already determined is safe and legal to scrape from. page_response = requests.get(page_link) # here, we fetch the content from the url, using the requests library page_content = BeautifulSoup(url_get.content, 'html.parser') #we use the html parser to parse the url content and store it in a variable.
[split] Using beautiful soup to get html attribute value
Messages In This Thread |
[split] Using beautiful soup to get html attribute value - by moski - Jun-03-2019, 11:07 AM
RE: [split] Using beautiful soup to get html attribute value - by heiner55 - Jun-03-2019, 01:57 PM
RE: [split] Using beautiful soup to get html attribute value - by moski - Jun-03-2019, 03:07 PM
RE: [split] Using beautiful soup to get html attribute value - by heiner55 - Jun-03-2019, 03:32 PM
RE: [split] Using beautiful soup to get html attribute value - by moski - Jun-03-2019, 03:36 PM
RE: [split] Using beautiful soup to get html attribute value - by snippsat - Jun-03-2019, 03:41 PM
RE: [split] Using beautiful soup to get html attribute value - by moski - Jun-03-2019, 04:24 PM
|
Users browsing this thread: 2 Guest(s)