Skip to content

Commit

Permalink
First commit -- add CLI opts
Browse files Browse the repository at this point in the history
  • Loading branch information
landaire committed Oct 21, 2016
1 parent eb94d41 commit 5732f49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ ENV/

# Rope project settings
.ropeproject
*.iml
19 changes: 19 additions & 0 deletions detweet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3

import argparse


def main():
parser = argparse.ArgumentParser(description='Delete tweets en masse')
parser.add_argument('--csv', help='the path to your tweets.csv file located in your twitter archive', required=True)
parser.add_argument('--dry', type=bool, default=False, help='do a dry run')
parser.add_argument('keyword', help='keywords to delete', nargs='+')

args = parser.parse_args()

print(args.keyword)
print(args.csv)


if __name__ == '__main__':
main()

0 comments on commit 5732f49

Please sign in to comment.