Updated README.md to provide some instructions on rebuilding the archive.

This commit is contained in:
David Ball 2024-05-24 00:01:40 -04:00
parent 1a86d7a2de
commit a1f552eb92

View File

@ -2,13 +2,13 @@
You can use git to clone 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` 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 # Installing NPM Application Dependencies
You can use npm to install the dependencies. You can use npm to install the dependencies.
`npm install` npm install
# Required: `yt-dlp` # Required: `yt-dlp`
@ -20,25 +20,46 @@ Installation: [https://github.com/yt-dlp/yt-dlp/wiki/Installation](https://githu
# Downloading YouTube Archives # Downloading YouTube Archives
You may need to use your web browser to login to YouTube. Once there you can create a `youtube-cookies.txt` file in your 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:
working directory. You can use the `youtube-example-cookies.txt` template here to see what it should look like:
# Netscape HTTP Cookie File # Netscape HTTP Cookie File
# This file is generated by yt-dlp. Do not edit. I think I might have once needed to create it first in Edge and copy my values from my logged in browser. # This file is generated by yt-dlp. Do not edit.
.youtube.com TRUE / TRUE ... GPS ... .youtube.com TRUE / TRUE ... GPS ...
.youtube.com TRUE / FALSE ... PREF tz=...&f6=...&f7=...&hl=... .youtube.com TRUE / FALSE ... PREF tz=...&f6=...&f7=...&hl=...
.youtube.com TRUE / TRUE ... SOCS ... .youtube.com TRUE / TRUE ... SOCS ...
.youtube.com TRUE / TRUE ... VISITOR_INFO1_LIVE ... .youtube.com TRUE / TRUE ... VISITOR_INFO1_LIVE ...
.youtube.com TRUE / TRUE ... VISITOR_PRIVACY_METADATA ... .youtube.com TRUE / TRUE ... VISITOR_PRIVACY_METADATA ...
.youtube.com TRUE / TRUE ... YSC ... .youtube.com TRUE / TRUE ... YSC ...
youtube.com FALSE / FALSE ... APISID .../... youtube.com FALSE / FALSE ... APISID .../...
youtube.com FALSE / TRUE ... PREF tz=...&f6=...&f7=... youtube.com FALSE / TRUE ... PREF tz=...&f6=...&f7=...
youtube.com FALSE / TRUE ... SAPISID .../... youtube.com FALSE / TRUE ... SAPISID .../...
youtube.com FALSE / FALSE ... SID ... youtube.com FALSE / FALSE ... SID ...
youtube.com FALSE / FALSE ... SIDCC ... youtube.com FALSE / FALSE ... SIDCC ...
youtube.com FALSE / TRUE ... __Secure-1PAPISID .../... youtube.com FALSE / TRUE ... __Secure-1PAPISID .../...
youtube.com FALSE / TRUE ... __Secure-3PAPISID .../... youtube.com FALSE / TRUE ... __Secure-3PAPISID .../...
youtube.com FALSE / FALSE ... _gcl_au ... youtube.com FALSE / FALSE ... _gcl_au ...
You can use the `sync-youtube-videos.cmd` script to download all of the YouTube videos. *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.