https://github.com/santik/twitter-search-cli
https://github.com/santik/twitter-search-cli
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/santik/twitter-search-cli
- Owner: santik
- Created: 2022-01-26T11:46:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T11:15:07.000Z (almost 4 years ago)
- Last Synced: 2025-03-03T14:34:57.182Z (11 months ago)
- Language: PHP
- Size: 561 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Search Application
### Local set up
For local development docker environment can be used.
To start container use the command
`docker-compose up`
### Server set up
Copy all the files from `www` directory to the server. Make sure directory is writable.
Run the command to install dependencies
`php composer.phar install --no-interaction --no-plugins --no-scripts --no-dev --prefer-dist`
### Running the application
Copy `config.php_tpl` to `config.php`.
Set Twitter API details and DB details in `config.php` file.
To save results in database flag `$saveResultsToDatabase` should be set to `true`.
Database schema could be found in `dump/myDb.sql`
Run the command
`php index.php searchquery`
You can use any word as an argument instead of "searchquery".
IMPORTANT: search is performed not only by username, but also in other fields.
Result CSV files wil be written in the same directory.