Cannot select HTML element with BeautifulSoup
Novice web scraper here:
I am trying to scrape the name and address from this website https://propertyinfo.knoxcountytn.gov/Datalets/Datalet.aspx?sIndex=1&idx=1. I have attempted the following code which only returns 'None' or an empty array if I replace find() with find_all(). I would like it to return the html of this particular section so I can extract the text and later add it to a csv file. If the link doesn't work, or take to you where I'm working, simply go to the knox county tn website > property search > select a property.
Much appreciation in advance!
from splinter import Browser import pandas as pd from bs4 import BeautifulSoup as soup import requests from webdriver_manager.chrome import ChromeDriverManager owner_soup = soup(html, 'html.parser') owner_elem = owner_soup.find('td', class_='DataletData') owner_elem
# this being the tag and class of the whole section where the info is located owner_soup = soup(html, 'html.parser') owner_elem = owner_soup.find_all('div', class_='datalet_div_2') owner_elem
OR when I try:
<splinter.driver.webdriver.WebDriverElement at 0x11a763160>
and I can't pull the html contents from that element.