Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Write a FeedsPubSubFetcher plugin that supports pubsub for at least
- PubSubHubbub
- RSSCloud
Comment | File | Size | Author |
---|---|---|---|
#23 | 617054-23_push.patch | 33.73 KB | alex_b |
#22 | 617054-22_push.patch | 34.99 KB | alex_b |
#21 | 617054-21_push.patch | 35 KB | alex_b |
#20 | 617054-19_push.patch | 33.44 KB | alex_b |
#18 | 617054-18_push.patch | 32.69 KB | alex_b |
Comments
Comment #1
leovarg CreditAttribution: leovarg commentedit sounds soooo cool
Comment #2
alex_b CreditAttribution: alex_b commentedComment #3
mchelenis any code from this module helpful? http://drupal.org/node/590928#comment-2144090
also, simpleupdateprotocol http://code.google.com/p/simpleupdateprotocol/ might be another good option that some other php projects have had good luck with
Comment #4
alex_b CreditAttribution: alex_b commentedI can't see any Drupal modules on that thread but I left a comment pointing to this issue.
Comment #5
G.I.Joe CreditAttribution: G.I.Joe commentedI will publish the first release of this module in a few days... let's say monday 9 november... and you will find it here http://drupal.org/node/609440#comment-2231628
Comment #6
alex_b CreditAttribution: alex_b commentedThere is PHP source code for PubSubHubub available on http://code.google.com/p/pubsubhubbub/source/checkout
I just realized that we will need to support pausing single feeds for this feature as a importer configuration will decide on a feed by feed basis on whether a feed needs to be refreshed on cron or not depending on whether a pubsub hub could be found for it. #629372: Pause single feeds
Comment #7
alex_b CreditAttribution: alex_b commentedThis is a first shot, building on subscriber.php included in http://code.google.com/p/pubsubhubbub/source/checkout
Completely untested and not functional. I'm posting this here to share where I'm going. Most likely, I won't have much time for working on this in the next week.
Comment #8
G.I.Joe CreditAttribution: G.I.Joe commentedI would like to contribute or collaborate with the feeds.module.
You can find a Beta version of my fastwebfeed.module at http://cupid-project.be/
Comment #9
alex_b CreditAttribution: alex_b commented#8 Always welcome. The issue queue is a great place to start. Soon I will come up with a roadmap, too.
#7: I thought more about implementing pub/sub. I think the approach taken in #7 of breaking it out into its own fetcher/parser is not the way to go as pub sub is fundamentally a problem that concerns the importer configuration. I. e. only specific Atom/RSS parsers can actually detect the pubsub hub URL in a feed and then this URL is to be used only if the fetcher supports HTTP GET (or in the case of PuSH receiving HTTP POST requests). Will roll a new patch if I can get more time.
Comment #10
G.I.Joe CreditAttribution: G.I.Joe commented#8 I have improved my code for Drupal 6. You can find the module here (http://cupid-project.be/project/fastwebfeed-module/page/downloads)
My next approach can be the feedapi.module.
Comment #11
G.I.Joe CreditAttribution: G.I.Joe commentedThe first Release Candidate for Drupal 6 is a fact. (fastwebfeed.module-6.x-1.0-RC1)
It supports pubsubhubbub and sup and it inserts this to the drupal RSS feeds.
See http://drupal.org/node/609440#comment-2330606
My next approach can be the feedapi.module.
Comment #12
leovarg CreditAttribution: leovarg commented+1
Comment #13
mcaudy CreditAttribution: mcaudy commentedSubscribing
Comment #14
m3avrck CreditAttribution: m3avrck commentedsubscribe
Comment #15
ckng+1, subscribing
Comment #16
alex_b CreditAttribution: alex_b commentedThis patch implements pubsubhubbub support. Very close now. Will test with superfeedr.
Comment #17
alex_b CreditAttribution: alex_b commentedImprovements:
* Implemented authenticated content distribution.
* Implemented unsubscribe on delete.
* Bunch of smaller bug fixes
For testing I opened an account with Superfeedr and hooked up to http://superfeedr.com/dummy.xml . You can send notifications for http://superfeedr.com/dummy.xml when going to Superfeedr's console on the dashboard and hitting the 'click here' button. You can observe notifications and subscription requests by following the debug log (see feeds_dbg() in feeds.module after patching).
Patch applies to HEAD. If you have applied #16, a reinstall is required.
Comment #18
alex_b CreditAttribution: alex_b commented- Fix fallback to $url when self can't be found.
Comment #19
alex_b CreditAttribution: alex_b commentedThe latest patched version is available on github here: http://github.com/lxbarth/Feeds
Setup:
* using the PubsubHubbub Fetcher instead of the HTTP Fetcher will automatically use pubsubhubbub if available.
* See README.txt on how to set up a designated hub (e. g. Superfeedr) with Feeds.
Outstanding:
* Do not automatically refresh feeds if they are successfully subscribed through PuSH (right now feeds will continue to import feeds at the given setting even if they are successfully subscribed).
* Automatically adjust re-subscription frequency to hub's verification response.
Both will require a significant rework of FeedsScheduler class that currently does not allow for different refresh frequencies per source.
Comment #20
alex_b CreditAttribution: alex_b commentedLatest updated patch:
- Removed resubscription handling: Waiting on #721428: Make scheduler next scheduled time based to build this properly.
- Factored FeedsPubsubFetcher into FeedsHTTPFetcher
- More clean ups.
- Made sure all tests pass.
[Edit, hit save too fast:]
Removing RSSCloud from title as this patch won't implement RSSCloud support.
http://github.com/lxbarth/feeds is up to date
Comment #21
alex_b CreditAttribution: alex_b commented- Renamed fetcher menu callbacks from feeds/fetcher/[importer_id] to feeds/importer/[importer_id] - more generic
- Cleaned up PuSHSubscriber.inc for release
Comment #22
alex_b CreditAttribution: alex_b commentedClean up description on designated hub field.
Comment #23
alex_b CreditAttribution: alex_b commentedReroll after http://github.com/lxbarth/PuSHSubscriber was released.
Comment #24
alex_b CreditAttribution: alex_b commentedCommitted.
I will do a blog post on PuSH support in Feeds tomorrow. Will post a quick notification here when it's out.
Comment #25
alex_b CreditAttribution: alex_b commentedFyi, a little while ago I posted this summary of PuSH subscriber support on our blog: http://developmentseed.org/blog/2010/feb/23/pubsubhubbub-support-drupal
Comment #27
venusrising CreditAttribution: venusrising commentedCan someone please clarify as we are confused. Read the dev see article but after installing Feeds and following instructions I think we misunderstood and that this is to pull other feeds into our site. What we are trying to do is FEED our core created feeds with pubsubhubbub. Matt Cutts suggested this as a means to cut down on scrapers that may pull your content and repost it. His article said this would help Google easily see who first posted it for search etc. We have had junk scraper sites ripping our articles . Can someone please help me understand. Thanks so much
Comment #28
kenorb CreditAttribution: kenorb commentedDrupal 7 is supported?
Comment #29
Ted51 CreditAttribution: Ted51 commentedCan someone confirm if PubSubHubbub is supported (or is planed to be supported) by Drupal 7 ?
Comment #30
ximo CreditAttribution: ximo commented#28, #29: Yes, this is supported in 7.x-2.0-alpha8 (the latest release on that branch):
http://cl.ly/image/0k3Y0v3t1b2O
And for the record, just to answer #27, the Feeds module only supports the "subscribe" part of PubSubHubbub.