Closed nadecancode closed 4 years ago
Ok, the issue is maybe that I specified num_tweets, but the actual comments are way less than this amount. and that's why the comments array was duplicating.
commentsResponse = []
seen = set()
for d in commentsResponse0:
t = tuple(d.items())
if t not in seen:
seen.add(t)
commentsResponse.append(d)```
This's probably the temporary fix. I filtered out all of the duplicate dicts to make sure no comments are repeating.
Thanks for the info.
You can use tweet.id as an int without bothering about id_str
Why don't you try change your False to True? I thought it would write to file on False.
I am glad you found a work around. If you think you've found a bug then create a bug issue on the tweet_scrapper github repo so the maintainer there can fix or advise.
As described in the discord server, the replies are repeating whenever I tried to fetch replies.
https://easyupload.io/wclgdj -> The dump file