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
- options defining the postings created
The feedspora.yml.template file provides a good starting point for defining your FeedSpora configuration.
Because options can be provided on both a client- and feed-specific basis, FeedSpora's operation can be customized in a multitude of combinations. For example, a configuration that allows a client to post a single entry from several different feeds, each of which is formatted differently and including different static tags. Or, a configuration that includes the full content of a feed entry on one client but not on another.
None of the options below are required, but are provided to further customize the content of the postings created from feed items, and are supported by all clients and feeds.
Feed-specific options will override client-specific options of the same name, with the exception of the max_posts option, which takes both client- and feed- specific settings into account during the posting process.
Provides a way to enable/disable a specific client/feed 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 (or if this option is not specified) 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 posting.
A comma-separated list of tags that will be added to every 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
Posts will start with the specified text.
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 post.
NOTE: This option is not supported by the Shaarli client
If specified, the content of the feed source (if present) will be included within the post. Any hashtags at the end of this content will be removed and processed separately (see the tag_filter_opts option above).
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
This option is required as the first line for all client specifications. It both specifies the name that will be used in logging or error messages, and defines the unique name for the specified 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'
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.
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 locations where FeedSpora will find RSS or Atom sources for the postings it will make, using the defined clients. At least one feed must be defined, and all defined/enabled feeds will attempt to be read on each FeedSpora run.
Note that any of the options specified in the Common Options section above can also be included with feed specifications.
Specifies the path to either an RSS or Atom feed URL or file.