PHP Twitter Search API
Im looking for a way of running a Twitter Search (Automated v开发者_StackOverflow社区ia CRON) that will search for a list of terms held in a text file.
Once it finds those terms I want it to write to results to a text file. Can anyone suggest anything? Simpler the better.
Edit
Seems I may not have been too clear,
I want to be able to Search Twitter, based on the contents of a CSV file.
The results should be cached, save to file.
there are 3 steps:
- set up a php script to run periodically (if you are using cpanel, you should find a GUI option to do so)
- create a text file that contains the terms you want to search
- the script will read the file (file and fread, or file_get_contents) and then search for the terms on twitter (try php-twitter)
What is you question exactly? How to read from a file? How to use the twitter api? How to cron you script?
精彩评论