Some accounts will return random tweets when searching with a list of users #1314

Open
opened 2025-11-19 20:35:43 -05:00 by ButteredCats · 9 comments
ButteredCats commented 2025-11-19 20:35:43 -05:00 (Migrated from github.com)

Despite not searching for any of these accounts they still appear mixed in with the rest of the tweets of who I did search.

Out of the 50 accounts I have 7 of them were like this, they'll return these "garbage" tweets every time if it's the only account in sessions.jsonl. When I logged into one of them I didn't see anything that stood out as weird.

Image
Despite not searching for any of these accounts they still appear mixed in with the rest of the tweets of who I did search. Out of the 50 accounts I have 7 of them were like this, they'll return these "garbage" tweets every time if it's the only account in `sessions.jsonl`. When I logged into one of them I didn't see anything that stood out as weird. <img width="616" height="768" alt="Image" src="https://github.com/user-attachments/assets/9d01f18f-816c-4b2c-8793-67501ae1caaa" />
zedeus commented 2025-11-20 09:54:31 -05:00 (Migrated from github.com)

Hm, that is quite weird. Does it happen reliably with those accounts?

The tweets are real at least:
Image

Image
Hm, that is quite weird. Does it happen reliably with those accounts? The tweets are real at least: <img width="897" height="508" alt="Image" src="https://github.com/user-attachments/assets/76cd34ca-da10-4627-965d-60131131f0b8" /> <img width="624" height="164" alt="Image" src="https://github.com/user-attachments/assets/64773944-c4d3-4739-87d5-ca1fcb86db74" />
ButteredCats commented 2025-11-20 10:03:00 -05:00 (Migrated from github.com)

Yeah these random tweets will be there every single time if it's the only real Twitter account in sessions.jsonl. Otherwise its just luck of the draw if Nitter uses a "normal" account or one of these weird ones.

Yeah these random tweets will be there every single time if it's the only real Twitter account in `sessions.jsonl`. Otherwise its just luck of the draw if Nitter uses a "normal" account or one of these weird ones.
zedeus commented 2025-11-20 11:00:54 -05:00 (Migrated from github.com)

Can you provide a raw JSON example? Just add echo result after this line: github.com/zedeus/nitter@824a7e346a/src/apiutils.nim (L96)

Can you provide a raw JSON example? Just add `echo result` after this line: https://github.com/zedeus/nitter/blob/824a7e346a730a3eeb87a945e8268b3e40867f0d/src/apiutils.nim#L96
ButteredCats commented 2025-11-20 19:36:48 -05:00 (Migrated from github.com)

Here you go!
Raw json.txt

Here you go! [Raw json.txt](https://github.com/user-attachments/files/23665829/Raw.json.txt)
zedeus commented 2025-11-21 07:44:29 -05:00 (Migrated from github.com)

I'm not really seeing anything out of the ordinary, besides the actual tweets. Does it happen with those accounts on other pages, or with other search queries?

I'm not really seeing anything out of the ordinary, besides the actual tweets. Does it happen with those accounts on other pages, or with other search queries?
ButteredCats commented 2025-11-21 11:49:15 -05:00 (Migrated from github.com)

Nope, only when searching with multiple users. Interestingly it looks like I have to be searching at least three users before the random tweets start appearing though.

If I only search two users then everything seems fine.

Nope, only when searching with multiple users. Interestingly it looks like I have to be searching at least three users before the random tweets start appearing though. If I only search two users then everything seems fine.
zedeus commented 2025-11-21 12:28:44 -05:00 (Migrated from github.com)

This is what Nitter generates as the search query. Try it as a normal search, then try logging into the account and doing a regular search via the official client and see what happens:
from:NASA OR from:esa OR from:NASAPersevere filter:self_threads OR -filter:replies include:nativeretweets

This is what Nitter generates as the search query. Try it as a normal search, then try logging into the account and doing a regular search via the official client and see what happens: `from:NASA OR from:esa OR from:NASAPersevere filter:self_threads OR -filter:replies include:nativeretweets`
ButteredCats commented 2025-11-21 12:43:35 -05:00 (Migrated from github.com)

Doing that search in Nitter produces the garbage tweets, doing it signed into the account on Twitter does not.

Doing that search in Nitter produces the garbage tweets, doing it signed into the account on Twitter does not.
ButteredCats commented 2025-11-25 22:54:47 -05:00 (Migrated from github.com)

The account I've been testing with has suddenly stopped having this issue, the others still do it though.

Edit: I lied, it's still doing it. However it has far less garbage tweets than the other accounts.

The account I've been testing with has suddenly stopped having this issue, the others still do it though. Edit: I lied, it's still doing it. However it has far less garbage tweets than the other accounts.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PAS/nitter#1314
No description provided.