app | ||
index | ||
pages | ||
routes | ||
static | ||
views | ||
.gitattributes | ||
.gitignore | ||
archived.php | ||
browse.html | ||
Caddyfile | ||
gulpfile.js | ||
mirror-virginia-law.ps1 | ||
package-lock.json | ||
package.json | ||
README.md | ||
redirects.Caddyfile | ||
sync-my-youtube-videos.cmd | ||
sync-youtube-videos.cmd | ||
tsconfig.build.json | ||
tsconfig.json | ||
web.config | ||
youtube-cookies.example.txt |
Cloning this Repository
You can use git to clone this repository.
git clone https://gitea.daball.me/No-Moss-3-Carbo-Landfill-Online-Library/no-moss-3-carbo-landfill-library.online.git
Installing NPM Application Dependencies
You can use npm to install the dependencies.
npm install
Required: yt-dlp
Project: https://github.com/yt-dlp/yt-dlp
Standalone Binaries: https://github.com/yt-dlp/yt-dlp#release-files
Installation: https://github.com/yt-dlp/yt-dlp/wiki/Installation
Downloading YouTube Archives
You may need to use your web browser to login to YouTube. You can then copy each cookie value out of your web browser using the Developer Tools Network tab. Gather the correct values to build a youtube-cookies.txt
file in your working directory using something like the youtube-example-cookies.txt
template here:
# Netscape HTTP Cookie File
# This file is generated by yt-dlp. Do not edit.
.youtube.com TRUE / TRUE ... GPS ...
.youtube.com TRUE / FALSE ... PREF tz=...&f6=...&f7=...&hl=...
.youtube.com TRUE / TRUE ... SOCS ...
.youtube.com TRUE / TRUE ... VISITOR_INFO1_LIVE ...
.youtube.com TRUE / TRUE ... VISITOR_PRIVACY_METADATA ...
.youtube.com TRUE / TRUE ... YSC ...
youtube.com FALSE / FALSE ... APISID .../...
youtube.com FALSE / TRUE ... PREF tz=...&f6=...&f7=...
youtube.com FALSE / TRUE ... SAPISID .../...
youtube.com FALSE / FALSE ... SID ...
youtube.com FALSE / FALSE ... SIDCC ...
youtube.com FALSE / TRUE ... __Secure-1PAPISID .../...
youtube.com FALSE / TRUE ... __Secure-3PAPISID .../...
youtube.com FALSE / FALSE ... _gcl_au ...
Windows Command Prompt: You can use the sync-youtube-videos.cmd
script to download all of the YouTube videos.
sync-youtube-videos.cmd
Updating Virginia Code
You can update the copy of the Virginia code:
Windows PowerShell: You can use the mirror-virginia-law.ps1
PowerShell script to download all of the current Virginia code.
mirror-virginia-law.ps1
Install Docker (optional)
Installing Docker is beyond the scope of this document. You may choose to install Docker to simplify running this web site.
Install Solr with Tika and Tesseract
Installing Solr with Tika and Tesseract is beyond the scope of this document. It is the search engine I use.
TODO: Document installation with Docker.
TODO: Finish these instructions.