A river4 NodeJS callback script to add new incoming items to Pinboard.

21 views
Skip to first unread message

Nicolas Meier

unread,
Nov 7, 2015, 12:19:03 PM11/7/15
to river4
Hi,

I have seen yesterday that Dave recently added a callback feature to River4.
I wrote a small script that uses the callback mechanism to add incoming items to Pinboard.
The script can be downloaded on GitHub. Just follow the setup instructions in the README.md file.
Bookmarks are added with the from:river4 tag.

Nicolas

Frank McPherson

unread,
Nov 7, 2015, 2:19:12 PM11/7/15
to river4
I am curious about how or why one would do this? 

--
GitHub repository: https://github.com/scripting/river4
How to ask for help: http://scripting.com/2014/03/19/howToAskForHelpWithSoftware.html
---
You received this message because you are subscribed to the Google Groups "river4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to river4+un...@googlegroups.com.
To post to this group, send email to riv...@googlegroups.com.
Visit this group at http://groups.google.com/group/river4.
To view this discussion on the web visit https://groups.google.com/d/msgid/river4/800c3b4b-a05d-403f-9946-cc9ad1ed6363%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

From the tablet of Frank McPherson
frank.m...@gmail.com

Nicolas Meier

unread,
Nov 7, 2015, 3:46:42 PM11/7/15
to river4
Do you use Pinboard?

Some archive their Twitter accounts in Pinboard, I just want to be able to do the same with the RSS feeds I read.
That way I don't have to do it manually.

Moreover I have an archival account, so Pinboard download a copy of all those web pages.

I think I'll add a config option to filter out unwanted feeds.

Dave Winer

unread,
Nov 7, 2015, 3:49:35 PM11/7/15
to riv...@googlegroups.com
You can probably search your river on Pinboard, now that you have the two services connected.

Andrew Shell uses this to connect his river up to Redis, an object database. I forwarded an email to this list at the time the addToRiver callback came online.


Dave



--
GitHub repository: https://github.com/scripting/river4
How to ask for help: http://scripting.com/2014/03/19/howToAskForHelpWithSoftware.html
---
You received this message because you are subscribed to the Google Groups "river4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to river4+un...@googlegroups.com.
To post to this group, send email to riv...@googlegroups.com.
Visit this group at http://groups.google.com/group/river4.

Dave Winer

unread,
Nov 7, 2015, 3:51:35 PM11/7/15
to riv...@googlegroups.com
I also have some rivers connected up to Twitter accounts. 



I'm not using the callback for this, because it didn't exist at the time I wrote the code for these Twitter feeds.

Dave


Nicolas Meier

unread,
Nov 7, 2015, 3:56:21 PM11/7/15
to river4
Exactly, Pinboard allows you to full-text search your bookmarks when you have an archival account.

Dave Winer

unread,
Nov 8, 2015, 9:25:01 AM11/8/15
to riv...@googlegroups.com
I noticed a couple of interesting things about your code.


1. You're using a package in the callback. I wasn't sure if that would work. Now I know it does. ;-)

2. You're storing data in the river4.js config.json. Why not. I would probably do it too. I guess the question of naming collisions will come up at some point, so it's good to be upfront about what you're using. It's right there in the code. 

Dave



On Sat, Nov 7, 2015 at 3:56 PM, Nicolas Meier <nico...@mailbolt.com> wrote:
Exactly, Pinboard allows you to full-text search your bookmarks when you have an archival account.
--
GitHub repository: https://github.com/scripting/river4
How to ask for help: http://scripting.com/2014/03/19/howToAskForHelpWithSoftware.html
---
You received this message because you are subscribed to the Google Groups "river4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to river4+un...@googlegroups.com.
To post to this group, send email to riv...@googlegroups.com.
Visit this group at http://groups.google.com/group/river4.
Reply all
Reply to author
Forward
0 new messages