[Laconica-dev] feednotice, a Rss-to-laconica script (was: Re: Developing the sense of a developer community)
Florian Birée
florian at biree.name
Sat Jul 12 06:32:59 EDT 2008
Hello all,
Dan Brickley a écrit :
> I don't know yet of an RSS-to-identica
> hack either.
I've just written a little python script to post updates from my blog on
my fresh laconica installation. The script is here:
http://filyb.info/public/scripts/feednotice.py
How it works? You need python and feedparser <http://feedparser.org/>
Run it by:
./feednotice.py subscription_file interval
where interval is number of minutes between each refresh of feeds, and
subscription_file is the file where you list your feeds, like that:
# username password site feed
username, password, http://laconica.site/, http://my.feed/
username, password, http://identi.ca/, http://my.feed/other
Fields are comma separated.
Notice that this script is not complicated, is make to run as a daemon
and consider items as new is their date is more recent than the last
check date. The last check date is initialized as the current time on
running, so if you stop the script then running it again, items in the
interval will not be posted.
I may write a better version using ids and saving them to new items,
this could solve some issues. However, the current version already
works, so enjoy!
Cheers,
NB: a password is needed, event if you registered with OpenID. Is-it
possible to make something for that?
NB2: thanks to Ryan Paul for the piece of python here:
<http://laconi.ca/Main/Version0API>
--
Thesa ~ Florian Birée
e-mail : florian at biree.name
Messagerie Instantanée Jabber/XMPP/Google Talk : florian.biree at jabber.fr
Site web : http://florian.biree.name/
Carnet web : http://filyb.info/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: florian.vcf
Type: text/x-vcard
Size: 198 bytes
Desc: not available
Url : http://mail.laconi.ca/pipermail/laconica-dev/attachments/20080712/d747e4aa/attachment.vcf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.laconi.ca/pipermail/laconica-dev/attachments/20080712/d747e4aa/attachment.pgp
More information about the Laconica-dev
mailing list