Skip to content
deej Howard edited this page Jan 14, 2019 · 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 Shaarli client

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).

Facebook (FacebookClient)

type: 'FacebookClient'
token: 'your_facebook_token'
post_to_id: 'facebook_page_or_group_id'

Refer to Client Notes: Facebook for information on where to find the required token and page ID information.

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: 'anyone' # should be either 'connections-only' or 'anyone' (default)

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

Diaspora (DiaspyClient)

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

All required authentication parameters are as associated with your Diaspora login credentials.

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'
delay: 10
visibility: ''

Mastodon's API limits the rate at which transactions can occur, on a per user account basis. By default, the limit is 300 requests per 5 minute time slot. This can differ from instance to instance and is subject to change. The delay parameter can be used to specify a delay between postings (time in seconds) so that the Mastodon instance's transaction limit is not exceeded.

The visibility parameter imposes limits on who can see the postings:

  • private - post will be visible only to followers
  • unlisted - post will be public but not appear on the public timeline
  • public - post will be public

If not specified, the default as specified for the Mastodon account will apply.

Shaarli (ShaarpyClient)

type: 'ShaarpyClient'
username: 'shaarli username'
password: 'shaarli password'
url: 'https://shaarli_url/u/shaarli_username/'
post_audience: 'public'  # should be either 'public' (default) or 'private'

All required authentication parameters are as associated with your Shaarli login credentials.

Note that for the value of url, you should use whatever URL is shown once you log into your Shaarli account via a web browser (as an example, the value of url for the public demo instance of Shaarli would be https://demo.shaarli.org).

Shaarli is a primarily a link-sharing service, and so has no facility for associating media with any posted material, other than its internal mechanisms. As a result, the post_include_media option is not supported for this client.

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