-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[SubstackBridge] Add Substack bridge #4174
Conversation
Pull request artifacts
last change: Wednesday 2024-07-31 19:56:58 |
this is nice. but i dont like the increased complexity of also the |
there are two locations earlier where foreach ($feedItem as $k => $v) {
$hasChildren = count($v) !== 0;
if (!$hasChildren) {
$item[$k] = (string) $v;
}
} and if (isset($feedItem->description)) {
$item['content'] = (string)$feedItem->description;
} this applies only for rss2.0 the i think this change is good but we must be clear that we are indeed possibly overwriting prior values in |
the full content is already present (using curl):
|
Overwriting prior values in The first And regardless, I've rebased this PR to include #4178 and it works as intended, so I removed my change to As for |
the cookie lifetime is 3 months you say but the session might die after e.g. 7 days or e.g. 24 hours of inactivity. so this bridge is kind of a hack indeed. dont they have some kind of api so we could create the added Maybe change description because works without cookie too for non-payawalled (but those could use feed directly without rss-bridge) For more url manipulation you could checkout the php class |
Rephrased the description. I'll see how long the session lives, it's certainly longer than a few days 🙂 And I have some hope because this hack worked with The Economist. Substack doesn't have an official public API, and their "normal" API is authorized with the same session cookie, which requires passing a CAPTCHA to obtain. So I think this is the simplest way. |
ok cool |
* [SubstackBridge] Add Substack * [SubstackBridge] Add docs * [SubstackBridge] Fix lint * [SubstackBridge] Update description * [SubstackBridge] Update description (x2)
This adds a bridge for Substack.
I noticed that their RSS returns the full content if fetched with the right set of cookies, so this bridge leverages that. I've got no clue whether it's intended or not.
This also required:
header
parameter toFeedExpander.collectExpandableDatas
;content
extension toFeedParser
.