Files
rpiRadio/ProjectBefore/NodeServer/PythonCode/Midi/TwitterExp.py
2018-05-19 02:20:19 +02:00

22 lines
441 B
Python

import twitter
import json
import requests
import _pickle as pickle
import sys
import schedule
import time
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
api=twitter.Api(consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_token_key=access_token,
access_token_secret=access_token_secret)
for line in api.getstreamfilter():
print (line)