Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to use Python 3, fixes #11 #31

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

sebastian-nagel
Copy link

@sebastian-nagel sebastian-nagel commented Sep 30, 2021

Note:

  • needs more testing on Hadoop and EMR
  • will move the main branch to "main" together with this upgrade

sebastian-nagel and others added 7 commits September 15, 2021 16:40
- first trial using warc3-wet as replacement for the 'warc' library
- based on an updated version of the warc library
  supporting Python 3, see
    https://github.com/commoncrawl/warc/
- optionally replaces by a compatibility-wrapper around
   warcio (https://pypi.org/project/warcio/)
  and
   fastwarc (https://resiliparse.chatnoir.eu/en/latest/api/fastwarc.html)
- if fileobj is passed to WARC/ARC constructor:
  need to also pass whether file is compressed
  following the file name suffix
The get-data script uses bash's array syntax, which causes an error if you actually try to use it with `sh`, so you might as well explicitly run it with bash.
Specify bash in get-data.sh
- update download links for sample WARC/WAT/WET files
- remove unauthenticated access in boto3 s3 client configuration

Update documentation, fix broken links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants