Twindle: CLI Edge cases Not able to read thread properly

Created on 11 Nov 2020  路  10Comments  路  Source: twindle-co/twindle

bug javascript

All 10 comments

I'll try this.

I'm facing some troubles now

I tried to create the thread manually and tested on my own thread
here is the link https://twitter.com/MadhusudanBabar/status/1326484312108249088
Screenshot (117)

but I'm getting the error TypeError: Cannot read property '0' of undefined

can anyone confirm with this tweet id 1326484312108249088 or here is the URL https://twitter.com/MadhusudanBabar/status/1326484312108249088

none of these ID's is working
1326484308014534656, 1326484312108249088, 1326484310052966401 and if I go with the puppeteer option then there's another error
Screenshot (119)

@johnjacobkenny @PurUVJ @Mira-Alf can anyone help @madhusudanbabar

I'm facing some troubles now

I tried to create the thread manually and tested on my own thread
here is the link https://twitter.com/MadhusudanBabar/status/1326484312108249088
Screenshot (117)

but I'm getting the error TypeError: Cannot read property '0' of undefined

can anyone confirm with this tweet id 1326484312108249088 or here is the URL https://twitter.com/MadhusudanBabar/status/1326484312108249088

none of these ID's is working
1326484308014534656, 1326484312108249088, 1326484310052966401 and if I go with the puppeteer option then there's another error
Screenshot (119)

These issues are happening b'coz there's a deleted tweet there. haven't tested for those yet.

@madhusudanbabar can you please check this if it is deleted tweets skip that specific tweet.

@madhusudanbabar can you please check this if it is deleted tweets skip that specific tweet.

Just one tweet from that thread was deleted,

But when i visit with the URL this tweet is available, the IDs mentioned here are not deleted, i deleted the different one

You can verify with
twitter.com/MadhusudanBabar/status/ID

this is not a proper solution but I found another way to get it, by means of the referenced tweet's id from the expansions and then getting the contents of that tweet id and repeating the same process until there are no referenced tweets, but this actually goes in reverse order, means we need to check for the id of the last tweet and from that, we traverse back to the first tweet.

here is the screenshot, the tweets are in last to first order
twindle_tweets

Very good analysis @madhusudanbabar

@PuruVJ and @Mira-Alf any comments?

I studied this issue really hard. Here is the problem explained in my words

  • This thread contains the main thread(first thread followed by 7 tweets on the same thread)
  • However after creating the thread, this user has added a reply to the first tweet which is also added to the same conversation and shares the conversation_id(done later not at the time of creating the thread)
  • When I construct a thread of tweets in the code, I look at direct replies to the first tweet and then replies to that tweet and so on. This is done to avoid adding replies, but the problem is the first tweet in this thread now has two distinct replies and in my case picks up the second reply and fails to build the original thread.
  • I am trying to fix it in the code. But any ideas for this I will truly appreciate. @johnjacobkenny or @PuruVJ please help!!

First Tweet of the thread

image

Direct Reply 1

image

Direct Reply 2

image

Is there a way for you to filter the first level or replies based on time? Will it work if we pick the older first reply?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnjacobkenny picture johnjacobkenny  路  8Comments

vasudeveloper001 picture vasudeveloper001  路  7Comments

proful picture proful  路  5Comments

vasudeveloper001 picture vasudeveloper001  路  4Comments

proful picture proful  路  4Comments