hello, When I create the following simple html page to test xpath, but can't get email string.
text.html > ... > ... <tr> <td> *email: [email protected]*</td></tr> ... my python code is the following: $scrapy shell text.html $mail_re = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" $response.xpath('//tr/td').re(mail_re) output: [] but the follow code work well: $response.xpath('//tr/td').re('\w+@\w+') output: ['[email protected]'] Could give some suggestion? thanks in advance~ -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
