gliberal / feedDiasp

Python 3 version of feedDiasp.

Home Page:https://debakel.github.io/feedDiasp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feedDiasp*

Python 3 version of Feed Diaspora with RSS-Feeds or Facebook.

Requirements

The following Python libraries are required:

  • feedparser pip3 install feedparser
  • facepy pip3 install facepy
  • html2text pip3 install html2text
  • pypandoc pip3 install pypandoc
  • diaspy pip3 install diaspy-api

The 'pandoc' tool must be installed too:

  • On Debian based distributions : apt-get install pandoc
  • On ArchLinux : pacman -S pandoc

Usage

from FeedDiasp import FeedDiasp
from FBParser import FBParser
from RSSParser import RSSParser

#Sync posts from a facebook site
fb = FBParser(user='spiegelonline', auth_token='...')
bot = FeedDiasp(parser=fb, pod='https://diasp.eu', username='zwirbel', password='Blume123', db='posts.txt')
bot.publish()

#Sync posts from a RSS feed
rss = RSSParser(url='http://www.spiegel.de/schlagzeilen/index.rss')
bot = FeedDiasp(parser=rss, pod='https://diasp.eu', username='zwirbel', password='Blume123', db='posts.txt')
bot.publish()

To avoid duplicates, submitted posts will be stored in posts.txt (defined in db).

Contributors

  • Moritz Duchêne
  • Alexey Veretennikov
  • Céline Libéral

License

Gnu General Public License (GPL), Version 2 or later

About

Python 3 version of feedDiasp.

https://debakel.github.io/feedDiasp/

License:GNU General Public License v2.0


Languages

Language:Python 100.0%