# Blinkt! twitter\_monitor.py example help

**URL:** <https://forums.pimoroni.com/t/blinkt-twitter-monitor-py-example-help/6393>\
**Category:** Support\
**Created:** [November 20, 2017, 2:17pm UTC](https://forums.pimoroni.com/t/blinkt-twitter-monitor-py-example-help/6393 "2017-11-20T14:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faster\_martyr](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@faster\_martyr](https://forums.pimoroni.com/u/faster_martyr)\
**Post date:** [November 20, 2017, 2:17pm UTC](https://forums.pimoroni.com/t/blinkt-twitter-monitor-py-example-help/6393/1 "2017-11-20T14:17:59Z")

</div>

Hi all.  
I was trying to run one of the Pimoroni supplied python examples called twitter\_monitor.py but I’m afraid I have zero knowledge about what I need to enter to get it working. It describes something about twitter developer access tokens and secrets, but that may as well be written in Klingon for all the sens it makes!

Anyone out there give me a hand on what I need to change to the script to get it working?

thanks.

---

<div class="post-metadata">

**Author:** ![hatbeard](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hatbeard/32/3290_2.png) [@hatbeard](https://forums.pimoroni.com/u/hatbeard)\
**Post date:** [November 20, 2017, 2:45pm UTC](https://forums.pimoroni.com/t/blinkt-twitter-monitor-py-example-help/6393/2 "2017-11-20T14:45:18Z")

</div>

for some reason you must have your phone number added to your twitter account to create a token so best add that first

then if you login with your twitter account here: [https://apps.twitter.com/](https://apps.twitter.com/) and click create an application you can fill out the form

just give it any name / description you like and ideally point the url at a domain you own, accept the terms and click submit.

you should now see your twitter ‘app’ settings and you will be able to generate your access token by clicking the generate access token button on the keys and access tokens tab.

edit the twitter\_monitor.py script and add the tokens as needed at the top and it should work.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/baqwas/32/3326_2.png) [@baqwas](https://forums.pimoroni.com/u/baqwas)\
**Post date:** [November 21, 2017, 4:11am UTC](https://forums.pimoroni.com/t/blinkt-twitter-monitor-py-example-help/6393/3 "2017-11-21T04:11:57Z")

</div>

If you plug in your _access credentials_ ( **all four** fields) into the sample code and stick to one hashtag for the time being then the example will run without further modification. Let me know if you run into issues AFTER you have pasted your access credentials and I’ll try to help you out. I’ve run all but two of the standard Pimoroni supplied examples without any error/issue.

Regards.

P.S. Of course, I have my own issue with respect to processing the matching tweets but that is a separate thread.
