-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Twitter] Legacy website design being discontinued on June 1, 2020 #1562
Comments
Ping @pmaziere. |
All Twitter feeds showing zero results now. I guess the 50/50 results I saw earlier was due to some servers not having shut down legacy support. |
@teromene do you know who was responsible for this bridge? If not, any idea who can propose a PR for that? |
The maintainer is @pmaziere , but anyone is welcome to propose a PR! |
Hi Team, Let me explain... Twitter from 1 June requires a browser with javascript to view the tweets (that is load the tweets with javascript). If I disable JavaScript in my Firefox browser, I see the message:
If I confirm and I'm directed to: Well, I thought. We scrap the data from the mobile version, change the structure of the page (must change all the references in the code) but it works. I have a working version locally. But, and here's the real problem, if I do a search I don't see recent results. For example, if I search for "AndreaDraghetti" in the mobile version I see very old results. In the Desktop version of a few hours ago. Try it too (remember to disable JavaScript in the desktop version):
I don't know how you can fix this :( |
Hey @drego85, this URL seems to work with the mobile version: https://mobile.twitter.com/search?q=AndreaDraghetti&src=typed_query&f=live |
It absolutely works, but the results are not recent. The last result shown is from May 30th (in the desktop version it is today).. |
Well, with this mobile URL (https://mobile.twitter.com/search?q=AndreaDraghetti&src=typed_query&f=live), I have the same results than on the other version: |
Okay my bad .. |
No problem, better to make multiple checks ;) |
@drego85 We can simulate the actions of Javascript, we just have to work out what the Javascript is doing and write it in PHP. |
This is a bummer. There's always Nitter for a quick hack, until this is solved: https://github.com/zedeus/nitter |
I have pushed an update to TwitterBridge. |
Thanks @teromene great workaround, I didn't know that "tokens" would be released to guest users. |
Can you share your input parameters as well as eventually your log @Nono-m0le ? |
Excellent work @teromene , I can confirm successful operation in cli mode. |
Glad it's working again! Thanks @teromene One problem is that The For the enclosures could we instead retain the 'orig' tag as before to retrieve the original sized images here? The following works correctly for me:
|
It's not working in my heroku instance. I did my usual process of pull from here, push to heroku, and heroku triggered a deploy. I get an error: Bridge returned error 429! (18418) with detail in HTML format:
or in plaintext format:
All modes in all formats give the same error |
I just deployed to a new heroku app using the button on the repo front page and the new instance also has the same error |
429 response is when twitter considers that you have made too many requests |
@doowruc I think to avoid this limitation, you can customize the code by adding two valid API tokens generated by the Twitter development site. |
@drego85 add them where? |
Line 346 and 347 and you can find more info of bearer tokens here. However I haven't personally tried. |
The last commit fixes the Bridge, thanks ! :)
I may have the time this weekend for a MR, not sure. |
The twitter rss-bridge suddenly started working again for me. Except for the still broken images. Is this a known issue as well? |
Yes, the broken images is a known issue @nousernameavailableanymore, see #1562 (comment) for the fix. |
I have no clue what that means? |
@nousernameavailableanymore just wait for the bridge to be updated with the fix then. |
Credit to @kinoushe See RSS-Bridge#1562 (comment)
Since we're now using the Twitter API it's possible to include videos: We would need to loop through the And then render video HTML instead of the image HTML, with the |
Will there be a new docker image with these changes? |
I have pushed a new update. |
@teromene are we able to keep the
|
Getting a 403 on lists again. |
Credit to @kinoushe See RSS-Bridge#1562 (comment)
Note the |
@somini oops, I missed that disclaimer. But I think conditionally displaying most/non advertiser videos would be better than nothing at all as current. From my limited testing the past few days |
I'll include a first pass on this on #1595 . It also supports "animated GIF", exposed as videos. Thanks for digging into the API. |
Credit to @kinoushe for digging into the API docs. RSS-Bridge#1562 (comment)
Excellent, thanks @somini! |
@teromene the caching strategy is better now but I think we need to expire tokens based on time as well as usage. |
I updated to the latest docker image yesterday. For some reason the version it still shows RSS-Bridge as version "dev.2020-02-26". |
@triatic It should expire at the same time as the default cache expiration time |
@teromene are you saying the token should last no longer than CACHE_TIMEOUT in the bridge (normally 5 minutes) when it is used under 100 times? Because I'm not seeing that behaviour here. |
* Keep old URI structure Use the username, not the user ID. * Fix Twitter bridge images Credit to @kinoushe See #1562 (comment) * Include Videos and "Animated GIF" as twit enclosures Credit to @kinoushe for digging into the API docs. #1562 (comment) * Calculate the highest bitrate video Include that on the enclosure. * Appease linter * Appease linter, again * Remove surrounding link from videos Add it on a smaller link besides it. See #1595 (comment) * Include video poster on the enclosures.
@ShaneZampire pull latest version of TwitterBridge. It is probably fixed already |
@ShaneZampire, the screenshot you gave does not tell anything to me. You need to provide full text of error. |
…idge#1595) * Keep old URI structure Use the username, not the user ID. * Fix Twitter bridge images Credit to @kinoushe See RSS-Bridge#1562 (comment) * Include Videos and "Animated GIF" as twit enclosures Credit to @kinoushe for digging into the API docs. RSS-Bridge#1562 (comment) * Calculate the highest bitrate video Include that on the enclosure. * Appease linter * Appease linter, again * Remove surrounding link from videos Add it on a smaller link besides it. See RSS-Bridge#1595 (comment) * Include video poster on the enclosures.
Twitter is discontinuing the 'legacy' website design, which currently powers this bridge, on June 1, 2020.
The text was updated successfully, but these errors were encountered: