@@ -41,16 +41,45 @@ Installation
4141
4242 Update the `feed and app parameters <parameters.html >`_.
4343
44+ .. versionadded :: 0.7.0
45+
46+ Since **twootfeed ** is connected to the user account, feeds may display items with **restricted visibility **.
47+
48+ A token is now mandatory to start the application and access feeds (minimum length: 25 characters).
49+
50+ Some examples for token generation:
51+
52+ > with Python
53+
54+ .. code-block :: bash
55+
56+ $ python
57+ Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux
58+ Type " help" , " copyright" , " credits" or " license" for more information.
59+ >>> import secrets
60+ >>> secrets.token_urlsafe ()
61+ ' pgoeS3qOsLHxduzNY_gmn6p5vWZqSzqBgnb_VPupQ7o'
62+ >>>
63+
64+ > with a linux command line
65+
66+ .. code-block :: bash
67+
68+ $ date | sha256sum | base64 | head -c 25; echo
69+ NWU2MzE1ZGM0MmVlZDg5NDNhN
70+
71+
4472
4573 - The files location can be changed with the following environment variables:
4674
47- ========================= =============================================== ===========================================================================================
48- variable description app default value
49- ========================= =============================================== ===========================================================================================
50- `TWOOTFEED_CONFIG_DIR ` configuration and credentials files directory **'~/.config/twootfeed/' **
51- `TWOOTFEED_CONFIG_FILE ` config file full path config dir + **'config.yml' ** => with default value: **'~/.config/twootfeed/config.yml' **
52- `TWOOTFEED_LOG ` application log file _no default value (log printed on the console)_
53- ========================= =============================================== ===========================================================================================
75+ =========================== =============================================== ===========================================================================================
76+ variable description app default value
77+ =========================== =============================================== ===========================================================================================
78+ ``TWOOTFEED_CONFIG_DIR `` configuration and credentials files directory **'~/.config/twootfeed/' **
79+ ``TWOOTFEED_CONFIG_FILE `` config file full path config dir + **'config.yml' ** => with default value: **'~/.config/twootfeed/config.yml' **
80+ ``TWOOTFEED_LOG `` application log file `no default value (log printed on the console) `
81+ ``TWOOTFEED_SETTINGS `` application settings **'ProductionConfig' **
82+ =========================== =============================================== ===========================================================================================
5483
5584- Start the app
5685
@@ -62,33 +91,35 @@ Installation
6291 Usage
6392~~~~~
6493
65- The RSS feeds are available on these urls :
94+ The following RSS feeds are available:
6695
6796- for Twitter search:
6897
69- - http://localhost:8080/tweets/<keywords>
70- - http://localhost:8080/<keywords> (*will be deprecated in a next version *)
98+ - http://localhost:8080/tweets/<keywords>?token=XXX
99+ - http://localhost:8080/<keywords>?token=XXX (*will be deprecated in a next version *)
71100
72101- for Mastodon search:
73102
74103 - keyword as a hashtag:
75104
76- - http://localhost:8080/toots/<hashtag> (without the leading #)
105+ - http://localhost:8080/toots/<hashtag>?token=XXX (without the leading #)
77106
78107 - query:
79108
80- - http://localhost:8080/toots/search/<query>
81- - http://localhost:8080/toot_search/<query> (*will be deprecated in a next version *)
109+ - http://localhost:8080/toots/search/<query>?token=XXX
110+ - http://localhost:8080/toot_search/<query>?token=XXX (*will be deprecated in a next version *)
82111
83112- for Mastodon connected user favorites:
84113
85- - http://localhost:8080/toots/favorites
86- - http://localhost:8080/toot_favorites (*will be deprecated in a next version *)
114+ - http://localhost:8080/toots/favorites?token=XXX
115+ - http://localhost:8080/toot_favorites?token=XXX (*will be deprecated in a next version *)
87116
88117- for Mastodon connected user bookmarks:
89118
90- - http://localhost:8080/toots/bookmarks
119+ - http://localhost:8080/toots/bookmarks?token=XXX
91120
92121- for Mastodon connected user home timeline:
93122
94- - http://localhost:8080/toots/home_timeline
123+ - http://localhost:8080/toots/home_timeline?token=XXX
124+
125+ where XXX is the token set in configuration.
0 commit comments