Update README.md
This commit is contained in:
parent
19ffbd6ede
commit
c0b283615d
14
README.md
14
README.md
@ -2,14 +2,18 @@
|
|||||||
I want to send a a daily tweet with the results of what my Pi-Hole blocked. Here is the code, run in Python3.
|
I want to send a a daily tweet with the results of what my Pi-Hole blocked. Here is the code, run in Python3.
|
||||||
|
|
||||||
# How to use
|
# How to use
|
||||||
Install following python dependencies:
|
Install following python dependencies with sudo pip install:
|
||||||
tweepy
|
tweepy
|
||||||
datetime
|
datetime
|
||||||
json
|
json
|
||||||
urllib
|
urllib
|
||||||
|
|
||||||
Download python file and replace it with your own account data and link to your own path/to/admin/api.php
|
Download python file and replace it with your own account data and link to your own path/to/admin/api.php
|
||||||
|
|
||||||
|
# Cronjob
|
||||||
|
This will tweet your stats at 23:59 everyday
|
||||||
|
59 23 * * * sudo python3 /home/pi/Desktop/twittertweeter.py >/dev/null 2>&1
|
||||||
|
|
||||||
# Twitter acces keys and tokens
|
# Twitter acces keys and tokens
|
||||||
On they own website it is quite clearly explained: https://dev.twitter.com/oauth/overview/application-owner-access-tokens
|
On they own website it is quite clearly explained: https://dev.twitter.com/oauth/overview/application-owner-access-tokens
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user