Hi, I want to be able to get somebodies tweets as soon as they tweet, but so far all I can do is make it so that when i manually ask for the tweets rather then it automatically updating for me.
Heres my code:
So how do I get it to automatically update rather than rerunning the script?
Heres my code:
PHP Code
<?php
import twitter
api = twitter.Api(consumer_key='', #im not showing you my tokens and keys
consumer_secret='',
access_token_key='',
access_token_secret='')
statuses = api.GetUserTimeline(screen_name="USERNAME") #username of twitter profile
stats = ([s.text for s in statuses])
print(stats[0])
So how do I get it to automatically update rather than rerunning the script?

