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
Now 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
What's wrong with my script?
if "Edward An" in x.text() print x
Is also not working. Still No Error and No response