Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created January 4, 2017 20:04
Show Gist options
  • Save atomotic/c158aa890589e1b719d63a182516c43f to your computer and use it in GitHub Desktop.
Save atomotic/c158aa890589e1b719d63a182516c43f to your computer and use it in GitHub Desktop.
pyinstaller twarc
(venv) ➜ twarc git:(master) ✗ pyinstaller --clean --hidden-import urllib3 --hidden-import queue --onefile twarc.py
(venv) ➜ twarc git:(master) ✗ ls -lah dist/twarc
-rwxr-xr-x 1 raffaele 5.4M Jan 4 21:01 dist/twarc
(venv) ➜ twarc git:(master) ✗ file dist/twarc
dist/twarc: Mach-O 64-bit executable x86_64
./dist/twarc --help
usage: twarc [-h] [--log LOG] [--consumer_key CONSUMER_KEY]
[--consumer_secret CONSUMER_SECRET] [--access_token ACCESS_TOKEN]
[--access_token_secret ACCESS_TOKEN_SECRET] [--config CONFIG]
[--profile PROFILE] [--warnings]
[--connection_errors CONNECTION_ERRORS]
[--http_errors HTTP_ERRORS] [--max_id MAX_ID]
[--since_id SINCE_ID] [--result_type {mixed,recent,popular}]
[--lang LANG] [--geocode GEOCODE] [--locations LOCATIONS]
[--follow FOLLOW]
{configure,filter,followers,friends,help,hydrate,retweets,sample,search,timeline,trends,users,version}
[query]
......
(venv) ➜ twarc git:(master) ✗ ./dist/twarc search "#webarchiving"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment