I’m working on a project with www.NJMLS.com. I’m trying to extract email of agent name “Edward An”:
import dryscrape as d
d.start_xvfb()
br = d.Session()
br.visit(‘http://www.njmls.com/members/index.cfm?action=dsp.results&city=&county=&nametype=firstname&name=Edward&x=70&y=33’)
#open url and try to extract the email of Edward An
How to get email of “Edward An”? If I try:
for x in br.xpath(“//*[@class = ‘realtor-info’]/*”)
# selecting all elements in <div class=”realtor-info”>….</div>
if “Edward An” in x:
print x[‘herf’]
#Not responding
I am not getting any response.
What’s wrong with my script?
if “Edward An” in x.text()
print x
This is also not working. Still there is no error and no response.
Source: Read More