Repository navigation
Configuration File
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.
The accounts section is where the details of the clients are defined. At least one client must be defined, of the supported types:
- Facebook (FacebookClient)
- Twitter (TweepyClient)
- LinkedIn (LinkedInClient)
- Diaspora (DiaspyClient)
- WordPress (WPClient)
- Mastodon (MastodonClient)
- Shaarli (ShaarpyClient)
You can also have multiple definitions of the same client, as long as their name attribute is different
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.
Specifies the name that will be used in logging or error messages, and defines the unique name for the specified client.
Provides a way to enable/disable a specific client without needing to remove its specification.
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_optssettings) - Bitly (requires supplemental
url_shortener_optssettings) - Chilpit
- Clckru
- Dagd
- Isgd
- Osdb
- Owly (requires supplemental
url_shortener_optssettings) - Post (requires supplemental
url_shortener_optssettings) - Qpsru
- Soogd
- TinyCC (requires supplemental
url_shortener_optssettings) - Tinyurl
See https://github.com/ellisonleao/pyshorteners.git for more information.
Supplements the url_shortener choice with any additional keys, etc.
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.
Specifies the maximum number of hashtags that will be included in the client posting.
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
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
Client posts will start with the specified text.
Client post contents will end with the specified text, followed by the relevant link.
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 Mastodon or Shaarli clients
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 Mastodon client
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.
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.
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.
type: 'DiaspyClient'
pod: 'diaspora_pod_url'
username: 'username'
password: 'password'
All required authentication parameters are as associated with your Diaspora login credentials.
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.
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.
type: 'MastodonClient'
client_id: 'client_key'
client_secret: 'client_secret'
access_token: 'access_token'
url: 'base_url_mastodon'
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.
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.