Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tombh/tweetfactory

Helps you archive and manage large Twitter search queries
https://github.com/tombh/tweetfactory

Last synced: 11 days ago
JSON representation

Helps you archive and manage large Twitter search queries

Awesome Lists containing this project

README

        

/**
* TWITTER FACTORY
*
* Searches twitter for multiple search terms and stores them in a database.
*
* See record_tweets.php and JSON_tweets.php for usage examples
*
* You'll want to attach this to a cron job.
*
* Here's the MySQL table structure it uses...
*
* CREATE TABLE IF NOT EXISTS `tweets` (
* `id` bigint(20) NOT NULL,
* `published` varchar(100) NOT NULL,
* `content` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
* `handle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
* `avatar` varchar(500) DEFAULT NULL,
* `parsed` varchar(10) DEFAULT NULL,
* PRIMARY KEY (`id`)
* ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
*
* Make sure to change the variables in the db() method to connect to your database!
*
* Written by @twombh
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
*/