You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hacked from [Pelican-tweet](https://github.com/mpaglia0/Pelican-tweet).
12
5
13
6
Needs Python > 3.0
@@ -22,14 +15,27 @@ Then it tries to post all eligible articles to Mastodon and - if post routine re
22
15
23
16
On every further run it matches the actual articles list with the list in `posted_on_Mastodon.txt` file and posts only new articles (and writes them in `posted_on_Mastodon.txt`).
24
17
18
+
*Pelican-toot* is at its very first stage of development, but it is already usable in product environments.
19
+
20
+
This release can publish:
21
+
22
+
- Title of article
23
+
- Body of article
24
+
- hashtag(s) if any
25
+
25
26
## Mastodon APIs
26
27
28
+
This plugin depends on [Mastodon.py](https://github.com/halcy/Mastodon.py).
29
+
27
30
In order to publish on Mastodon you need to enter in `publishconf.py` the following information:
28
31
29
-
TODO
30
32
```python
31
-
MASTODON_CONSUMER_KEY=''
32
-
...
33
+
MASTODON_BASE_URL='URL of your Mastodon instance. For example https://mastodon.social'
34
+
MASTODON_USERNAME='Your username for Mastodon login'
35
+
MASTODON_PASSWORD='You password for Mastodon login'
33
36
```
37
+
There is no need to register an app in your Mastodon profile because *Pelican-toot* will do it for you!
34
38
35
-
This plugin depends on [Mastodon.py](https://github.com/halcy/Mastodon.py).
39
+
On every run *Pelican-toot* looks for a file called `pelicantoot_clientcred.secret` and - if it is not found - it gets in touch with Mastodon, creates an app called *PelicanToot* and writes API keys and other necessary information in this file.
40
+
41
+
If you cancel this file *Pelican-toot* will create another app (this could be done in case of problem despite the fact Mastodon advise this is NOT a good behaviour since app should be created only once).
0 commit comments