diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..73f2cd2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3 +ENV LC_ALL=C +RUN echo deb http://deb.debian.org/debian buster-backports main contrib > /etc/apt/sources.list.d/backports.list \ + && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io update \ + && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io install zip rsync curl \ + && pip install requests youtube_dl \ + && rm -rf /var/lib/apt/lists/* +COPY . /grab +WORKDIR /grab +STOPSIGNAL SIGKILL +ENTRYPOINT ["python3", "worker.py"] diff --git a/README.md b/README.md index a3aa1b3..3f31987 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,22 @@ A wrapper repo for free and easy deployment and environment configuration, as we [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Data-Horde/ytcc-archive-heroku) +### Docker image + +Stable Docker Image: +`docker pull fusl/ytcc-archive` + +You can also make a new image using the Dockerfile provided in this repo. + ## Bonus Features ### Export Captions and Titles/Descriptions Manually Simply run `python3 exporter.py` followed by a list of space-separated YouTube video IDs, and all community-contributed captioning and titles/descriptions in all languages will be exported. ### Discover Videos Manually Simply run `python3 discovery.py` followed by a list of space-separated YouTube video IDs and a list of discovered video, channel and playlist IDs will be printed, as well as whether caption contributions are enabled. + +# Stats +See how much has been archived so far. + +* https://atdash.meo.ws/d/attv2/archive-team-tracker-charts-v2?orgId=1&var-project=ext-yt-communitycontribs +* https://tracker.archiveteam.org/ext-yt-communitycontribs/