Update ApartmentHunter.py

Added broken loop for reference
This commit is contained in:
Adalibh
2022-05-10 11:48:18 -05:00
committed by GitHub
parent 9f66c3194a
commit 13ed28bfbb

View File

@@ -25,4 +25,9 @@ for city in Cities:
src = driver.page_source
soup = BeautifulSoup(src, 'html.parser')
Apartment = soup.find_all('span', class_='js-placardTitle title')
ApartmentAddr = soup.find_all('div', 'property-address js-url')
ApartmentAddr = soup.find_all('div', 'property-address js-url')
for span in Apartment:
print(span)
span_soup = BeautifulSoup(span, 'html.parser')
Name = span.find('span', class_='js-placardTitle title')
print(name.string)