
PROJECTS: Exploring the Microverse
Save this file as keys.py, then create another new
file in the same folder called tweettest.py, with the
code shown below.
In this new file, we are importing Twython from
the twython module as well as the keys and
tokens from keys.py. Next, we use those keys and
tokens to connect to the Twitter API, before
sending a test tweet. Change the text in my
example message into something you’d like to
say, then save your file and run your script. You’ve
sent your first tweet using Python!
4. TEST THE CAMERA
With your Raspberry Pi turned off, connect the
camera module. Gently pull up on the edges of
the port’s plastic ...