Commit graph

80 commits

Author SHA1 Message Date
Zed
624394430c Use legacy timeline/user endpoint for Tweets tab 2023-08-08 02:09:56 +02:00
Zed
50f821dbd8 Use search instead of old timeline endpoint 2023-07-22 03:22:13 +02:00
Zed
cc5841df30 Use old timeline endpoint 2023-07-21 18:56:39 +02:00
Zed
67203a431d Add back search 2023-07-12 03:37:44 +02:00
Zed
0bc3c153d9
Fix everything (#927)
* Switch bearer token and endpoints, update parser

* Enable user search, disable tweet search

* Disable multi-user timelines for now

* Fix parsing of pinned tombstone
2023-07-10 11:25:34 +02:00
Zed
1ac389e7c7
GraphQL timeline (#812)
* Update deps

* Replace profile timeline with GraphQL endpoint

* Update GraphQL endpoint versions

* Use GraphQL for profile media tab

* Fix UserByRestId request

* Improve routing, fixes #814

* Fix token pool JSON

* Deduplicate GraphQL timeline endpoints

* Update list endpoints

* Use GraphQL for list tweets

* Remove debug leftover

* Replace old pinned tweet endpoint with GraphQL

* Validate tweet ID

* Minor token handling fix

* Hide US-only commerce cards

* Update config example

* Remove http pool and gzip from token pool

* Support tombstoned tweets in threads

* Retry GraphQL timeout errors

* Remove unnecessary 401 retry

* Remove broken timeout retry

* Update karax, use new bool attribute feature

* Update card test

* Fix odd edgecase with broken retweets

* Replace search endpoints, switch Bearer token

* Only parse user search if it's a list

* Fix quoted tweet crash

* Fix empty search query handling

* Fix invalid user search errors again
2023-04-21 14:41:30 +02:00
Zed
670a3bca6e Revert "Revert "Replace tweet endpoint with GraphQL""
This reverts commit 36c72f9860.
2023-02-24 01:01:22 +01:00
Zed
36c72f9860 Revert "Replace tweet endpoint with GraphQL"
This reverts commit 19adc658c3.
2023-02-02 12:38:58 +01:00
Zed
19adc658c3 Replace tweet endpoint with GraphQL 2023-02-02 12:31:49 +01:00
Zed
ff61d97a1d Optimize profile fetching and caching 2023-01-20 04:55:42 +01:00
jackyzy823
9b97ddc8d8 Fix list members not displaying 2022-03-10 21:24:57 +08:00
Zed
3a076a9b4e Add experimental parser module 2022-01-26 21:05:23 +01:00
Zed
4738ec3385 Add experimental user search parser 2022-01-26 20:56:05 +01:00
Zed
a54d6aa1eb Add experimental GraphQL list members parser 2022-01-26 18:04:01 +01:00
Zed
ae7091e69d Add experimental GraphQL user parser 2022-01-26 18:04:01 +01:00
Zed
27183f1a74 Use faster API to get pinned tweets 2022-01-23 07:45:01 +01:00
Zed
51ae076ea0 Rearchitect profile, support pins, Profile -> User 2022-01-23 07:23:09 +01:00
Zed
f3d6f53f6d Rework profile cache behavior, fix suspended cache
Fixes #480
2022-01-16 20:32:45 +01:00
Zed
cdf49dcddd Add experimental user parser 2022-01-16 06:01:13 +01:00
Zed
dd71e60f35 Track token rate limits per endpoint 2022-01-05 22:48:45 +01:00
Zed
d726894555 Remove unused profile API 2022-01-05 22:17:14 +01:00
jackyzy823
35bb5f9132 Rework list api 2021-12-30 08:36:43 +01:00
Zed
b0a5e38b3f Merge branch 'intent-userid' 2021-12-30 01:45:41 +01:00
Zed
e3f6c72bf6 Skip list request if ID is empty 2021-12-29 08:03:00 +01:00
jackyzy823
52af6b2746 Implement user_id to screen_name router 2021-12-28 09:30:55 +01:00
Zed
aa2fed19d7 Skip search requests when query is empty 2021-12-28 07:35:35 +01:00
Zed
73b5b60ac3 Add license headers
Closes #413
2021-12-27 02:37:38 +01:00
Zed
9e413e1f8c Rename replaceUrl to replaceUrls 2021-12-27 02:27:49 +01:00
Zed
7af71ec480 Fix compiler warnings 2021-12-20 04:18:44 +01:00
Zed
91f42c4c94 Nevermind. 2020-06-17 20:55:01 +02:00
Zed
0e58c36bae Change user endpoint 2020-06-17 00:22:11 +02:00
Zed
77da2e32c6 Use old api to optimize photo rails 2020-06-17 00:20:34 +02:00
Zed
34dd02df1b Add photo rail test 2020-06-07 07:57:15 +02:00
Zed
fb591e43b8 Switch to packedjson to try lowering memory usage 2020-06-02 18:05:54 +02:00
Zed
1fb78f8047 Minor token changes 2020-06-02 18:05:54 +02:00
Zed
74534e8fef Use old user endpoint to avoid graphql rate limits 2020-06-02 18:05:54 +02:00
Zed
762d00b21d In with the new 2020-06-02 18:05:54 +02:00
Zed
1aa1487402 Add t.co and /cards link resolvers
For t.co links: https://t.co/.. -> nitter.net/t.co/..
For card links: https://cards.twitter.com/cards/.. -> nitter.net/cards/...
2019-12-30 11:41:09 +01:00
Zed
9e3138e51b Add list support 2019-09-21 01:08:30 +02:00
Zed
30bab22dae Add user search 2019-09-17 21:17:36 +02:00
Zed
43bf6735d4 Refactor api code 2019-09-06 03:37:12 +02:00
Zed
f7c1c28368 Initial search refactoring 2019-08-23 02:15:25 +02:00
Zed
c834d418e2 Fix wrong getVideo arguments 2019-08-13 21:06:01 +02:00
Zed
7171486f03 Revamp profile api to display more metadata 2019-08-11 21:30:31 +02:00
Zed
bfcb74c6cc Cache videos 2019-08-06 19:02:38 +02:00
Zed
eeead99e32 Add multi-user timeline support 2019-08-06 17:41:06 +02:00
Zed
9487d11fcb Clean up media api code 2019-07-31 09:30:02 +02:00
Zed
6b6e5b3a40 Use random user agents 2019-07-31 08:42:52 +02:00
Zed
27cf4cdf64 Support promo_video_website cards 2019-07-16 03:45:38 +02:00
Zed
9d1682012d Render cards 2019-07-15 13:41:27 +02:00