We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbf98a commit 8056c79Copy full SHA for 8056c79
src/my/twitter/archive.py
@@ -217,6 +217,12 @@ def tweets(self) -> Iterator[Tweet]:
217
# NOTE: for some reason, created_at doesn't seem to be in order
218
# it mostly is, but there are a bunch of one-off random tweets where the time decreases (typically at the very end)
219
for r in self.raw(what='tweet', fname=fname):
220
+ created_at_str = r['created_at']
221
+ created_at_year = int(created_at_str[-4:])
222
+ if created_at_year < 2006: # twitter didn't exist before that
223
+ # had a couple of tweets with 1997/2003 as year... in 2025-09-17 export... possibly some exporter bug
224
+ # for now just ignore
225
+ continue
226
yield Tweet(r, screen_name=self.screen_name)
227
228
def likes(self) -> Iterator[Like]:
0 commit comments