Permalink
Please
sign in to comment.
Browse files
API Refactor / Browser Profiles Support (#15)
* api refactor: - '/crawls' create api accepts all options as POST body params, 'start' indicates if also starting - '/crawl/<id>/start' api simply starts crawl - 'cache' enum added to (always, default, never) to indicate aggressive cacheing (every request), default, or no cacheing - browsertrix_cli: move crawl commands to 'crawls' subcommand and crawls.py to allow other subcommands - tests: update tests for new api, fix name in test compose - update /crawl/<id>/urls to return 'scopes' and 'queue' as with lists of dict instead of lists of dict as string. * support for browser profiles as per #14 update configs: - enable auto fetch for pywb - add fixed-pool to pools - enable default fixed pool, no-proxy/live mode for creating profile browser - proxy set via PROXY_HOST env var, defaults to 'pywb' - profile: list, create, remove - crawl create: can specify --profile flag, also --coll and --mode overrides - consistently use 'behavior_time' param for behavior time * tests: update test-docker-compose - add install-browsers.sh, use for travis install (with headless) - remove unused decoding functions
- Loading branch information...
Showing
with
899 additions
and 654 deletions.
- +1 −0 .dockerignore
- +1 −3 .travis.yml
- +2 −1 Dockerfile
- +5 −17 browsertrix/api.py
- +125 −97 browsertrix/crawl.py
- +37 −27 browsertrix/schema.py
- 0 browsertrix_cli/__init__.py
- +119 −0 browsertrix_cli/basecli.py
- +342 −0 browsertrix_cli/crawl.py
- +3 −424 browsertrix_cli/main.py
- +142 −0 browsertrix_cli/profile.py
- +1 −0 cli-requirements.txt
- +1 −0 docker-compose.yml
- +2 −1 flocks/browsers.yaml
- +18 −0 install-browsers.sh
- +9 −1 pool_config.yaml
- +5 −0 pywb/config.yaml
- +15 −5 pywb/crawlapp.py
- +1 −2 tests/conftest.py
- +6 −9 tests/crawl_tests.yaml
- +1 −0 tests/start-test-compose.sh
- +4 −2 tests/test-docker-compose.yml
- +56 −46 tests/test_api.py
- +3 −3 tests/test_live_crawl.py
- +0 −16 tests/utils.py
Oops, something went wrong.
0 comments on commit
83ebf10