Update ApartmentHunter.py
Added broken loop for reference
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user