Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/my/twitter/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ def tweets(self) -> Iterator[Tweet]:
# NOTE: for some reason, created_at doesn't seem to be in order
# it mostly is, but there are a bunch of one-off random tweets where the time decreases (typically at the very end)
for r in self.raw(what='tweet', fname=fname):
created_at_str = r['created_at']
created_at_year = int(created_at_str[-4:])
if created_at_year < 2006: # twitter didn't exist before that
# had a couple of tweets with 1997/2003 as year... in 2025-09-17 export... possibly some exporter bug
# for now just ignore
continue
yield Tweet(r, screen_name=self.screen_name)

def likes(self) -> Iterator[Like]:
Expand Down
Loading