diff --git a/.gitignore b/.gitignore index f29a0c0..ea5da9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ .idea venv -bearer.json +twitter.json mail_credentials.json test.* __pycache__/ *.json +!/etc/tw2hugo/twitter.json +!/etc/tw2hugo/mail_credentials.json \ No newline at end of file diff --git a/README.md b/README.md index 871921f..7b31972 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,19 @@ Between these you can simple call the keys from the json, so `name` in dict `use Neato, isn't it? If you want to know how it looks like, head over to my [website](https://tuxstash.de/) and scroll down to the footer. +# Excluding hashtags + +Sometimes you do not want a tweet to decorate the hard work you call your web home. You can add the following to `twitter.json` +to exclude certain hashtags: + +``` +"exclude": [ + "politics" +] +``` + +You find sample configuration files in the `/etc/` folder in the project root. +

Buy Me a Coffee at ko-fi.com diff --git a/etc/tw2hugo/mail_credentials.json b/etc/tw2hugo/mail_credentials.json new file mode 100644 index 0000000..58a6297 --- /dev/null +++ b/etc/tw2hugo/mail_credentials.json @@ -0,0 +1,8 @@ +{ + "smtp-server": "smtp.example.com", + "smtp-port": 465, + "email-user": "notify@example.com", + "email-sendfrom": "notify@example.com", + "email-password": "passw0rd", + "email-sendto": "you@example.com" +} diff --git a/etc/tw2hugo/twitter.json b/etc/tw2hugo/twitter.json new file mode 100644 index 0000000..9b6dd0d --- /dev/null +++ b/etc/tw2hugo/twitter.json @@ -0,0 +1,7 @@ +{ + "bearer": "bearer token from twitter", + "twitter-handle": "GothSeiDank", + "output-location": "/path/to/hugo/data/latest_tweet.json", + "exclude": ["1", "2"] +} +