[twitter] ignore double tweets
This commit is contained in:
parent
095ad4aedf
commit
d5460c4f8c
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ class TrendsPage(TwitterJsonHTMLPage):
|
|||
|
||||
class TimelineListElement(ListElement):
|
||||
item_xpath = '//*[@data-item-type="tweet"]/div'
|
||||
ignore_duplicate = True
|
||||
|
||||
def get_last_id(self):
|
||||
_el = self.page.doc.xpath('//*[@data-item-type="tweet"]/div')[-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue