Skip to content

COLABORATI/feedDiasp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feedDiasp*

Feed Diaspora with RSS-Feeds or Facebook.

Requirements

  • feedparser pip install feedparser
  • facepy pip install facepy
  • html2text pip install html2text
  • pypandoc pip install pypandoc
  • diaspy git clone https://github.com/marekjm/diaspy.git /tmp/diaspy && cp -r /tmp/diaspy/diaspy $PYTHONPATH (do not install with pip, the version in PyPI is not working.)

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

License

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

About

Feed Diaspora with RSS-Feeds or Facebook. (RSS-Bot)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%