1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-06 03:55:36 -05:00
Commit Graph

61 Commits

Author SHA1 Message Date
Zed
a666c4867c Include username in session logs if available
Fixes #1310
2025-11-17 05:42:44 +01:00
Zed
68fc7b71c8 Fix media support for cookie sessions
Fixes #1304
2025-11-16 23:22:21 +01:00
Zed
5aa0b65fea Add bearer token for cookie-based auth 2025-11-16 05:24:23 +01:00
Zed
4fc7b873c4 Use dynamic rate limits from API responses 2025-11-16 05:22:45 +01:00
Zed
f89d2329d2 Add cookie-based authentication support
Fixes #1303
2025-11-15 22:59:35 +01:00
Zed
41fa47bfbf Revert "Support both web and Android sessions"
This reverts commit 661be438ec.
2025-02-25 23:36:02 +00:00
Zed
661be438ec Support both web and Android sessions 2025-02-25 05:46:18 +00:00
Zed
92cd6abcf6 Stop logging unimportant errors 2025-02-16 02:06:19 +01:00
Zed
6fcd849eff Rename accounts/guest accounts to sessions
The new file loaded by default is now ./sessions.jsonl
JSONL is also required, .json support dropped.
2025-02-05 04:15:53 +01:00
Zed
5265de101d Skip null fetch errors 2025-02-05 03:49:17 +01:00
Zed
e38276a638 Update authority header 2025-02-05 00:40:19 +01:00
Zed
2e13d7b57c Capture "account locked" API error 2025-02-05 00:35:39 +01:00
Zed
19569bb19f Replace old v1 photo rail API with gql 2025-02-05 00:25:50 +01:00
Zed
4120558649 Replace /.tokens with /.health and /.accounts 2023-10-31 12:04:32 +00:00
Zed
fcd74e8048 Retry rate limited requests with different account 2023-09-02 08:15:58 +02:00
Zed
82beb5da8c Add empty oauth token logging 2023-08-31 01:31:27 +02:00
Zed
282ce8b0e9 Add 429 logging 2023-08-31 01:29:54 +02:00
Zed
898b19b92f Improve rate limit handling, minor refactor 2023-08-30 03:10:21 +02:00
Zed
c3d9441370 Unify some guest account logs 2023-08-21 14:49:50 +02:00
Zed
e8b5cbef7b Add missing limitedAt assignment 2023-08-20 12:31:08 +02:00
Zed
3d8858f0d8 Track rate limits, reset after 24 hours 2023-08-20 11:56:42 +02:00
Zed
3572dd7771 Replace tokens with guest accounts, swap endpoints 2023-08-19 00:25:14 +02:00
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
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
e2560dc1f1 Prevent search endpoint from discarding tokens 2023-04-21 01:01:18 +02:00
Zed
687447cea4 Only retry on 401 once 2022-12-19 10:07:24 +01:00
Zed
2ac3afa5b2 Retry intermittent 401 Unauthorized requests 2022-09-21 05:50:16 +02:00
Zed
4ffe7d7665 Fix compilation with Nim 1.4.8 2022-01-23 14:47:13 +01:00
Zed
f58824cb35 Add URL to request errors 2022-01-23 08:38:38 +01:00
Zed
79b98a8081 Simplify bad http client pruning 2022-01-23 07:23:09 +01:00
Zed
cdb4efadfe Temporary fix to Twitter's global timeline error 2022-01-21 09:17:18 +01:00
Zed
e0b141daf9 Small optimization for photo rail request size 2022-01-17 03:21:38 +01:00
Zed
fff04de24b Simplify new error handling 2022-01-16 18:28:40 +01:00
Zed
cdf49dcddd Add experimental user parser 2022-01-16 06:01:13 +01:00
Zed
ffcac982d0 Style fixes 2022-01-06 03:57:14 +01:00
Zed
34964f9e56 Track pending token requests to limit concurrency 2022-01-05 23:52:45 +01:00
Zed
dd71e60f35 Track token rate limits per endpoint 2022-01-05 22:48:45 +01:00
Zed
74c4377198 More cleanup 2022-01-02 11:21:03 +01:00
Zed
ddc2be8439 Make gzip handling more robust 2021-12-30 01:39:00 +01:00
Zed
c09a8d87d9 Attempt to fix occasional cursor error 2021-12-28 08:18:44 +01:00
Zed
99d3c46af5 Improve API error handling 2021-12-28 05:41:41 +01:00
Zed
6bcbe0ea9f Handle decompression errors 2021-12-28 05:13:47 +01:00
Zed
73b5b60ac3 Add license headers
Closes #413
2021-12-27 02:37:38 +01:00
Zed
3da6c50cb8 Use gzip for API calls to lower bandwidth and RAM 2021-12-26 06:49:27 +01:00
Zed
5b185c79de Improve token management logic 2021-12-20 04:19:11 +01:00
Zed
df9f90f99c Fix http pool usage to prevent rate limit error 2021-07-18 03:36:27 +02:00
Zed
4a38b270af Don't release empty tokens 2021-01-25 11:07:29 +01:00
Zed
67142bea6a Don't discard tokens on length errors 2021-01-25 11:04:36 +01:00
Zed
67e15bb492 Temporary (?) fix for false rate limits 2021-01-18 07:57:39 +01:00