@@ -20,87 +20,9 @@ The RSS feed displays only the original tweets (not the retweets) and toots, wit
2020- source
2121- location (only for Twitter)
2222- numbers of retweets and likes for tweets and boosts and favourites for toots
23- (see examples below).
2423
25- ## Requirements
2624
27- - Python 3.6+
28- - API keys Twitter and/or Mastodon
29-
30-
31- ## Installation and configuration
32-
33- - Install from pip
34-
35- ``` bash
36- $ pip install twootfeed
37- ```
38-
39- - Initialize the configuration file
40- ``` bash
41- $ twootfeed_init
42- ```
43-
44- - Fill in fields for the client(s) you will use in ** '~ /.config/twootfeed/config.yml'** :
45- - for ** Twitter** : see https://apps.twitter.com
46- copy/paste the Twitter API key values in ** config.yml** file ('_ consumerKey_ ' and '_ consumerSecret_ ')
47- - for ** Mastodon** : see [ Python wrapper for the Mastodon API] ( https://mastodonpy.readthedocs.io/ )
48- use the included script which will register your app and prompt you to log in, creating the credential files for you.
49- ``` bash
50- $ twootfeed_create_mastodon_cli
51- ```
52- Update the [ feed and app parameters] ( https://github.com/SamR1/python-twootfeed/wiki/Application-parameters ) .
53-
54-
55- - The files location can be changed with the following environment variables:
56-
57- | variable | description | app default value |
58- | ------------------------| -----------------------------------------------| ------------------------------------------------------------------------------------------|
59- | ` TWOOTFEED_CONFIG_DIR ` | configuration and credentials files directory | ** '~ /.config/twootfeed/'** |
60- | ` TWOOTFEED_CONFIG_FILE ` | config file full path | config dir + ** 'config.yml'** => with default value: ** '~ /.config/twootfeed/config.yml'** |
61- | ` TWOOTFEED_LOG ` | application log file | _ no default value (log printed on the console)_ |
62-
63- - Start the app
64- ``` bash
65- $ twootfeed
66- ```
67-
68- ## Usage
69-
70- The RSS feeds are available on these urls:
71- - for Twitter: http://localhost:8080/ <keywords > or http://localhost:8080/tweets/ <keywords >
72- - for Mastodon:
73- - search:
74- - keyword as a hashtag: http://localhost:8080/toots/ <hashtag > (without the leading #)
75- - query: http://localhost:8080/toot_search/ <query >
76- - connected user favourites: http://localhost:8080/toot_favorites
77-
78-
79- ## Examples
80-
81- ### Search on Twitter
82-
83- ![ Twitter search] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/twitter.png )
84-
85- Results in RSS Feed:
86- ![ RSS Feed] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/RSSFeed.png )
87-
88- Display on FreshRSS, a great free self-hosted aggregator (https://github.com/FreshRSS/FreshRSS ):
89- ![ FreshRSS] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/FreshRSS.png )
90-
91- ### Search on Mastodon
92-
93- ![ Mastodon search] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/mastodon.png )
94-
95- Results in RSS Feed:
96- ![ Mastodon Feed] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/MastodonRSSFeed.png )
97-
98- Display on FreshRSS:
99- ![ Mastodon FreshRSS] ( https://raw.githubusercontent.com/SamR1/python-twootfeed/master/images/MastodonFreshRSS.png )
100-
101-
102- ## Contribute
103- see [ Quick start for developers] ( https://github.com/SamR1/python-twootfeed/wiki/Quick-start-for-developers )
25+ ➡️ see [ documentation] ( https://samr1.github.io/python-twootfeed/index.html ) for installation instructions and features.
10426
10527
10628## Contributors
0 commit comments