Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Upgrade to use Python 3, fixes #11#31

Open
sebastian-nagel wants to merge 7 commits intomainfrom
python-3-upgrade
Open

Upgrade to use Python 3, fixes #11#31
sebastian-nagel wants to merge 7 commits intomainfrom
python-3-upgrade

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants