Home > Blockchain >  How to select text in a tag with xpath scrapy?
How to select text in a tag with xpath scrapy?

Time:05-15

I want to select the text inside these tags, how can I select them ( i want to select the name and comment in a post on the Facebook fan page)?

  • I have 2 div tags like this
<div >
    <a href="/profile.php?id=100003980635623&amp;fref=nf&amp;rc=p&amp;__tn__=R">
        <div >
        <i ></i>
        Fan cứng
        </div>
        Hải Ka
        </a>
    </div><div data-commentid="511961943618859" data-sigil="comment-body">
    Ráng lướt rồi cũng sẽ qua<span ><span  style="height: 16px; width: 16px; font-size: 16px; background-image: url(&quot;https://static.xx.fbcdn.net/images/emoji.php/v9/t81/1/16/1f60c.png&quot;)">           
  • Related