Wunderfitz / harbour-piepmatz

Piepmatz is a Twitter client for Sailfish OS
GNU General Public License v3.0
52 stars 17 forks source link

[Error] Piepmatz doesn't shows "show thread" button #91

Closed AlmuHS closed 4 years ago

AlmuHS commented 4 years ago

Since two days ago, Piepmatz doesn't shows the threads after open a tweet. When you open a tweet which includes a thread, the button "show thread" doesn't appears. Even waiting a minutes, the button doesn't appears.

Could you solve this issue?

Wunderfitz commented 4 years ago

Obviously, Twitter modernized their site a few days ago. As a consequence, tweet threads can no longer be extracted directly from the web front-end now. That needs to be done as there is no official API for threads.

Unfortunately, there is no straight-forward fix, at least I haven't found one yet. But let's see... Any help/hints are appreciated!

schmittlauch commented 4 years ago

IBBoard/Cawbird#17 has just renewed their thread handling, if I understand correctly they do it via the Twitter search API. This has the downside of running into the history limits of the API-exposed search (threads can only be linked for a few days after publishing), but is less brittle than doing web scraping.

Wunderfitz commented 4 years ago

Yep, also thought about that. But I really don't like consuming the search API for that, it's terribly inefficient and goes against your own API limits... But if there is no other way around it, that would be the solution. I still think it can be done using the NoJS frontend of Twitter, but time is very limited right now as I hardly have any spare time at the moment...