RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.37k stars 1.04k forks source link

[PriviblurBridge] Add Priviblur (Tumblr frontend) bridge #4221

Closed Phantop closed 3 months ago

Phantop commented 3 months ago

Adds a bridge for Priviblur, as it provides plaintext versions of Tumblr posts. Useful as some Tumblr pages (e.g. page search, non-user tags, tags for users without a subdomain) do not have official RSS feeds and many require either Javascript or an API token (and substantial API usage) to access contents without the assistance of a frontend.

github-actions[bot] commented 3 months ago

Pull request artifacts

Bridge Context Status
Priviblur 1 untitled (pr) ✔️

last change: Wednesday 2024-08-21 20:50:23

dvikan commented 3 months ago

this fetches the /explore/trending posts on frontpage. not in date order.

the instance might go down. maybe better to allow user to select from a list?

also use latest from master.

[2024-08-21 21:57:56] rssbridge.ERROR Exception in DisplayAction(PriviblurBridge) {
    "type": "ErrorException",
    "code": 0,
    "message": "Attempt to read property \"plaintext\" on null",
    "file": "bridges/PriviblurBridge.php",
    "line": 39,
    "url": "http://127.0.0.1/?action=display&bridge=PriviblurBridge&url=https%3A%2F%2Fpriviblur.fly.dev&format=Html",
    "trace": [
        "index.php(81): RssBridge->main()",
        "lib/RssBridge.php(96): DisplayAction->__invoke()",
        "actions/DisplayAction.php(66): DisplayAction->createResponse()",
        "actions/DisplayAction.php(114): PriviblurBridge->collectData()",
        "bridges/PriviblurBridge.php(39): {closure}()",
        "bridges/PriviblurBridge.php(39)"
    ]
}
Phantop commented 3 months ago

this fetches the /explore/trending posts on frontpage. not in date order.

It's mostly there as an unselective example page, as it follows the format and all entries are timestamped anyways. Should I be reordering the entries in date order despite them having timestamp attributes?

the instance might go down. maybe better to allow user to select from a list?

I think it's preferable to allow the user to openly select which instance they use, rather than writing in a list that might all go down. There's unfortunately no official instance—the instance I used is one I host myself—so it's hard to decide on anything else to put there (hence URI being set to the Github page).

also use latest from master.

What do you mean?

Phantop commented 3 months ago

The error you posted should be fixed! Made the assumption that all Tumblr posts would be tagged.