Skip to content
deej Howard edited this page Dec 23, 2018 · 18 revisions

The feedspora.yml configuration file defines:

  • which social media outlets (clients) are used, including
    • their credentials
    • options defining the postings created
  • the RSS/Atom feed(s) that will be read for posting items

The feedspora.yml.template file provides a good starting point for defining your FeedSpora configuration.

accounts

The accounts section is where the details of the clients are defined. At least one client must be defined, of the supported types:

You can also have multiple definitions of the same client, as long as their name attribute is different

Common Options

None of the options below are required (except for name), but are provided to further customize the content of the postings created from feed items, and are supported by all clients.

name: 'My Client Name'

Specifies the name that will be used in logging or error messages, and defines the unique name for the specified client.

enabled: true

Provides a way to enable/disable a specific client without needing to remove its specification.

url_shortener: 'None'

Defines the URL shortener that will be applied to the post-specific URL. If this fails for any reason, the original link is used instead. Supported choices include

  • Adfly (requires supplemental url_shortener_opts settings)
  • Bitly (requires supplemental url_shortener_opts settings)
  • Chilpit
  • Clckru
  • Dagd
  • Isgd
  • Osdb
  • Owly (requires supplemental url_shortener_opts settings)
  • Post (requires supplemental url_shortener_opts settings)
  • Qpsru
  • Soogd
  • TinyCC (requires supplemental url_shortener_opts settings)
  • Tinyurl

See https://github.com/ellisonleao/pyshorteners.git for more information.

url_shortener_opts: = {}

Supplements the url_shortener choice with any additional keys, etc.

max_posts: 0

A zero value indicates that an unlimited number of postings are allowed.

If this value is greater than 0, it defines the maximum number of feed entries to post on a per-run basis.

If this value is less than 0, no postings are created, but an entry is created in the "published" database as if the posting had been created. This allows you to "seed" the published database, which is especially useful when first starting up posting of a feed that has a lot of entries and you were only interested in posting the most recent ones.

max_tags: 2

Specifies the maximum number of hashtags that will be included in the client posting.

tags: 'tagA, tagB'

A comma-separated list of tags that will be added to every client posting (unless limited by length), and will supplement any tags found in the feed entry

tag_filter_opts: ''

A comma-separated list of options that will be applied to filtering tags. Supported options include:

  • ignore_title: don't include tags found in the feed entry's title
  • ignore_content: don't include tags found at the end of the feed entry's content
  • ignore_category: don't include tags found in the feed entry's category
  • case-sensitive: keeps tags of the same value but different case, which are normally filtered out

post_prefix: 'BEGIN-'

Client posts will start with the specified text.

post_suffix: '-END'

Client post contents will end with the specified text, followed by the relevant link.

post_include_media: true

If specified, image media from RSS feed sources will attempt to be included as part of the posted tweet.

NOTE: This option is not supported by the Diaspora, Facebook, LinkedIn Mastodon, or Shaarli clients

post_include_content: true

If specified, the content of the RSS feed sources (if present) will be included within the posted tweet. Any hashtags at the end of this content will be removed and processed separately (see the tag_filter_opts option above).

NOTE: This option is not supported by the Diaspora, Facebook, LinkedIn Mastodon, or Shaarli clients

Facebook (FacebookClient)

type: 'FacebookClient'
token: 'your_facebook_token'

Twitter (TweepyClient)

type: 'TweepyClient'
consumer_token: 'my_consumer_token'
consumer_secret: 'my_consumer_secret'
access_token: 'my_access_token'
access_token_secret: 'my_access_token_secret'

Refer to Client Notes: Twitter for information on where to find the required token information.

LinkedIn (LinkedInClient)

type: 'LinkedInClient'
authentication_token: 'authentication_token'
visibility: '' # should be either 'connections-only' or 'anyone'

Diaspora (DiaspyClient)

type: 'DiaspyClient'
pod: 'diaspora_pod_url'
username: 'username'
password: 'password'

WordPress (WPClient)

type: 'WPClient'
wpurl: 'some_random_url'
username: 'username'
password: 'password'

For wpurl, use the web address of the intended blog, with /xmlrpc.php appended to the name (i.e. https://myawesomeblog.wordpress.com/xmlrpc.php).

The username and password can be for any account that has Editor or Administrator permissions for the referenced blog.

post_link_content: true

If specified, the content from the link associated with the RSS/Atom feed entry will be posted, rather than the content of that entry. Stated another way, this causes the contents of the page referenced by the RSS/Atom feed entry to be included in the posted article.

Mastodon (MastodonClient)

type: 'MastodonClient'
client_id: 'client_key'
client_secret: 'client_secret'
access_token: 'access_token'
url: 'base_url_mastodon'

Shaarli (ShaarpyClient)

type: 'ShaarpyClient'
username: 'shaarli username'
password: 'shaarli password'
url: 'https://shaarli_url/u/shaarli_username/'

feeds

The feeds section defines the path to either an RSS or Atom feed URL or file. At least one feed must be defined, and all defined feeds will attempt to be read on each FeedSpora run.

Clone this wiki locally