Skip to content
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

[Threads] add bridge #3805

Merged
merged 3 commits into from
Nov 21, 2023
Merged

[Threads] add bridge #3805

merged 3 commits into from
Nov 21, 2023

Conversation

mdemoss
Copy link
Contributor

@mdemoss mdemoss commented Nov 21, 2023

Partially resolves #3495 -- didn't get a timestamp scraped yet. Another project pulled it out of the JSON https://github.com/DIYgod/RSSHub/blob/1765c55af250b0e84ddb5395b6ae2d473da19263/lib/v2/threads/index.js#L189C35-L189C35

Copy link

Pull request artifacts

Bridge Context Status
Threads 1 By username (pr) ⚠️ DEBUG bridges/ThreadsBridge.php(73): Fetched: https://www.threads.net/@zuck
⚠️ DEBUG bridges/ThreadsBridge.php(75): 68 JSON blobs found.
⚠️ DEBUG bridges/ThreadsBridge.php(90): Candidate codes found in JSON in script tags: Array
⚠️ WARNING Attempt to read property "content" on null at bridges/ThreadsBridge.php line 105
⚠️ WARNING Attempt to read property "content" on null at bridges/ThreadsBridge.php line 106
⚠️ DEBUG lib/FeedItem.php(139): Title must be a string!
⚠️ DEBUG lib/FeedItem.php(204): Feed content must be a string but got NULL

last change: Tuesday 2023-11-21 14:36:00

@mdemoss
Copy link
Contributor Author

mdemoss commented Nov 21, 2023

It'd be good to test on posts with special characters and/or html, I don't have an account so I didn't test that.

@dvikan
Copy link
Contributor

dvikan commented Nov 21, 2023

this is cool . good start. thanks 👍

@dvikan dvikan merged commit b037d1b into RSS-Bridge:master Nov 21, 2023
7 checks passed
@mdemoss
Copy link
Contributor Author

mdemoss commented Nov 22, 2023

Note: Cross-Origin-Resource-Policy: same-origin is set by threads.net on the images.

@dvikan
Copy link
Contributor

dvikan commented Feb 16, 2024

apt install php-intl for grapheme_* string functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bridge request for Threads.net
2 participants