-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# detweet | ||
|
||
Have some spam on your profile? Maybe an association with someone you want to get rid of? detweet allows you todelete tweets before or after a specific date that match a given regular expression. | ||
|
||
## Usage | ||
|
||
### Set up your API credentials | ||
|
||
1. Create an application for use with this script (https://dev.twitter.com/apps) | ||
2. Get your client token/secret and access token/token secret | ||
3. Create a credentials file containing: | ||
|
||
``` | ||
export CONSUMER_KEY='' | ||
export CONSUMER_SECRET='' | ||
export ACCESS_TOKEN='' | ||
export ACCESS_TOKEN_SECRET='' | ||
``` | ||
|
||
Replace the empty strings with their respective values. | ||
|
||
In your terminal run: | ||
|
||
``` | ||
source credentials | ||
``` | ||
|
||
### Example run | ||
|
||
``` | ||
$ ./detweet.py --csv ~/Downloads/tweeter_archive/tweets.csv --before '2014-06-01' 'some(thing)?' 'maybe a swear here' | ||
``` |