This repository has been archived on 2023-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
DarthKeizer 19ffbd6ede Update twittertweeter-ads.py
Adjusted data percentage to 2 decimals with %.2f and ofcourse converting to float
2017-05-11 10:11:38 +02:00
README.md Update README.md 2017-05-06 16:48:17 +02:00
twittertweeter-ads.py Update twittertweeter-ads.py 2017-05-11 10:11:38 +02:00

README.md

Pi-Hole-stats-tweeter

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

Install following python dependencies: tweepy datetime json urllib

Download python file and replace it with your own account data and link to your own path/to/admin/api.php

Twitter acces keys and tokens

On they own website it is quite clearly explained: https://dev.twitter.com/oauth/overview/application-owner-access-tokens

Reddit

https://www.reddit.com/r/pihole/comments/67umvj/need_help_with_doing_a_daily_pihole_tweet/