[solved]-Hello Im Learning Beautiful Soup Selenium Im Trying Get Price Houses Certain Zip Code Trul Q39014477
Hello Im learning Beautiful Soup and Selenium but Im trying toget all price of houses of a certain zip code on Trulia but sinceI’m learning it has been difficult for me to get
<span class=”cardPrice h5 man pan typeEmphasize noWraptypeTruncate” data-reactid=”1444″>$379,900</span>
This is my code:
import bs4
from bs4 import BeautifulSoup
import requests
def extract_source(url):
headers ={‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1; WOW64;rv:50.0) Gecko/20100101 Firefox/50.0’}
source = requests.get(url, headers=headers).text
return source
def extract_data(source):
soup = bs4.BeautifulSoup(source, ‘lxml’)
names = soup.findAll(‘data-reactid’)
for i in names:
print(i)
extract_data(extract_source(‘https://www.trulia.com/NY/Bronx/10457/’))

ON $249,000 94bd2ba 1,231 sqft $290,000 V 3bd 2 ba 2,454 sqft $610,000 4bd2ba 2,760 sqft luvun HIIUL TUU SAVAIT $160,000 3bd 2ba 1,300 sqft $225,000 03bd 2 ba 1,288 sqft $366,000 v 3bd 2ba 1,506 sqft Show transcribed image text ON $249,000 94bd2ba 1,231 sqft $290,000 V 3bd 2 ba 2,454 sqft $610,000 4bd2ba 2,760 sqft luvun HIIUL TUU SAVAIT $160,000 3bd 2ba 1,300 sqft $225,000 03bd 2 ba 1,288 sqft $366,000 v 3bd 2ba 1,506 sqft
Expert Answer
Answer to Hello Im learning Beautiful Soup and Selenium but Im trying to get all price of houses of a certain zip code on Trulia b… . . .
OR

