Hi Everyone,
I've recently purchased an "Internet of Things" - Raspberry Pi edition - from AdaFruit to experiment with and learn on. This isn't my first RPi but it is my first real foray into Python. I've been working on a piece of sample sample code that they include in order to help get you started using the device and I've hit a snag that I think should be very easy to fix. Unfortunately, my lack of experience with Python is keeping me from progressing past this spot and I was wondering if anyone here could help me out?
The sample code is for pulling updates from certain Twitter accounts and printing them on a miniature receipt printer. Everything with the printer is working fine. What I need help with is being able to pull more than one account's updates. Here's the sample code I'm working with:
# queryString can be any valid Twitter API search string, including
# boolean operators. See http://dev.twitter.com/docs/using-search
# for options and syntax. Funny characters do NOT need to be URL
# encoded here -- urllib takes care of that.
queryString = 'from:TheTweetOfGod'
I've gone thru the website listed in the comments but I'm still not able to figure out how to add more than one account. Basically, "TheTweetOfGod" is the only one I can view unless I change it to something else. I want to be able to add several. I've tried using things like:
queryString = 'from:TheTweetOfGod'
queryString = 'from:TheOnion'
queryString = 'from:TFLN'
But the only one that prints is the last one. I've tried adding boolean operators like queryString = 'from:TheTweetOfGod'ORqueryString = 'from:TheOnion'OR....etc
But then I get errors regarding the syntax.
I know this is pretty first-rate stuff and I'm missing something very simple. If anyone can point me in the right direction I would really appreciate it.
Thank you.