Skip to content

Commit

Permalink
Merge pull request #146 from openzim/wombat_external
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 authored Jan 15, 2024
2 parents ba961c9 + 764db58 commit aca2db3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7,658 deletions.
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ def read(*names, **kwargs):
return fh.read()


WOMBAT_SOURCE_URL = "https://cdn.jsdelivr.net/npm/@webrecorder/wombat@3.7.0/dist/"


def download_wombat(name):
print("Downloading " + WOMBAT_SOURCE_URL + name)
with urllib.request.urlopen(WOMBAT_SOURCE_URL + name) as response: # nosec
with open(root_dir.joinpath("src", "warc2zim", "statics", name), "wb") as fh:
fh.write(response.read())


download_wombat("wombat.js")


def get_package_data():
pkgs = ["templates/*", "statics/*"]

Expand Down
Loading

0 comments on commit aca2db3

Please sign in to comment.