Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradmontgomery/python-twitter-filter
https://github.com/bradmontgomery/python-twitter-filter
filter python twitter
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bradmontgomery/python-twitter-filter
- Owner: bradmontgomery
- License: mit
- Created: 2014-07-06T23:08:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-06T23:22:10.000Z (over 10 years ago)
- Last Synced: 2024-04-16T18:23:16.419Z (7 months ago)
- Topics: filter, python, twitter
- Language: Python
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
A Twitter Filter
================This is a simple python script that connects to the Twitter streaming api
and searches for keywords.Usage
-----This app requires a Twitter App Key and OAuth tokens, which it will read from
the following environment variables:* `TWITTER_APP_KEY`
* `TWITTER_APP_SECRET`
* `TWITTER_OAUTH_TOKEN`
* `TWITTER_OAUTH_TOKEN_SECRET`I stick these in `~/.twitter`, and run `source ~/.twitter` prior to running
the filter.The filter requires two parameters:
1. A search Query, and
2. A path to a text file. Matching tweets will be appended to this file.Example usage:
$ source ~/.twitter && python filter/main.py "search query" /path/to/tweets.txt