Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andersonshatch/twit-db

Retrieve twitter timelines & store in MySQL
https://github.com/andersonshatch/twit-db

database hacktoberfest mysql php twitter

Last synced: 19 days ago
JSON representation

Retrieve twitter timelines & store in MySQL

Awesome Lists containing this project

README

        

### A Tool to retrieve Twitter timelines & store in MySQL [![Build Status](https://travis-ci.org/andersonshatch/twit-db.svg?branch=master)](https://travis-ci.org/andersonshatch/twit-db)

#### Requirements
- PHP version 7.0 and above
- MySQL version 5.5.3 and above

(Automatically determined, only tested on the current PHP & MySQL versions)

#### Installation
Clone the repository into a web server directory and run ```git submodule update --init``` to retrieve the submodules.
Visit the directory you cloned into in a web-browser. You should be redirected to setup.php.

Once you have completed the setup process, create a task to run gettweets.php at regular intervals.
(E.g. on OS X the cron task I run is ```@hourly /opt/local/bin/php /opt/local/apache2/htdocs/twitter-dev/gettweets.php --quiet``` )

Then, visit the directory again where you can search through the stored tweets using index.php.

#### Search Tips
You can surround words with quotes to search for that exact combination and prefix them with ```+``` or ```-``` to ensure those words are included, or excluded as necessary.