Automatic archiving with Spicadox's fork of auto-ytarchive-raw (Windows)



Prerequisites

Some up-to-date Python 3
Spicadox's auto-ytarchive-raw
FFmpeg binaries
ytarchive
ytarchive-raw-go


Setting up (automatic retrieval of privated streams)

Before proceeding you should have file extensions turned on:

turning on file extensions

After downloading everything you should have this:
files downloaded

  1. Unpack every zip archive:
    unpacked archives
  2. Move every exe file from their respective folder above, FFmpeg files will be in bin folder:
    executables in main folder
  3. Move every exe file to auto-ytarchive-raw folder:
    moving files to auto-yta folder
  4. Rename ytarchive-raw-go-windows-amd64.exe to ytarchive-raw-go.exe
    rename yta-raw-go
  5. Click on the address bar and type cmd before it
    open cmd
    Paste inside pip install -r requirements.txt and wait until it's done then close the window.
  6. Open channels.json.example file in Notepad and replace the contents with
    {
        "idol": "UCRMs0dRR4MEnCftyk6l1tvQ",
        "Kattarina Qutie Ch. idol": "UCMmy_EmxnYQ8aar8fNZrumw",
        "Nikki Rei Ch. idol": "UCBnmfjpmhGxao6v54fIIMUA",
        "Yuko Yurei Ch. idol-EN": "UCcIcMRVpNqWQn4WnDhRASAw",
        "Juna Unagi Ch. idol-EN": "UCTFCSCPvqjXEs3zq91aeOVg",
        "Rin Penrose Ch. idol-EN": "UCpZIbzoEC_3rZglErpQkbDg",
        "Pochi Wanmaru Ch. idol-EN": "UCP0csSl19lOSNwJGCFsJqAQ",
        "Fuyo Cloverfield Ch. idol-EN": "UC8zgKaS8LiyL28mdhRC2nBg",
        "Riro Ron Ch. idol-EN": "UCGaN6JMiDHZSkPXt-82b6yQ",
        "Roca Rourin Ch. idol-EN": "UC9xR7uN0x5a6CH3Uopq7czA",
        "Poko Rakun Ch. idol-EN": "UCk2k1y-d24nFyVCvyxnAaYA",
        "Kai Saikota Ch. idol-EN": "UCC4hjJp_MttwfZcuWc0OpVQ",
        "Momo Otako Ch. idol-EN": "UCe0JiGnjPfEwEIbWASbOimw",
        "Coni Confetti Ch. idol-EN": "UCUfgKgCxtFs1ZPlyiM3JcTw"
    }
    

should look like:
channels json file contents

  1. Save the file as channels.json (remove any .example or .txt there):
    save channels json
  2. Open const.py.example
    Change lines:
    ENABLE_PRIVATE_CHECK = False to ENABLE_PRIVATE_CHECK = True
    PRIVATED_DOWNLOAD = None to PRIVATED_DOWNLOAD = "privated\%(upload_date)s %(id)s"
    Save as const.py
  3. Open text.py.example
    Change line:
    MULTI_MANIFEST_MESSAGE = "[{video_id}](https://youtu.be/{video_id}) has multiple manifest on [{channel_name}](https://www.youtube.com/channel/{channel_id})!" to MULTI_MANIFEST_MESSAGE = ""
    Save as text.py
  4. Create a bat file with this inside:
    1
    2
    3
    4
    @echo off
    :start
    python index.py
    goto start
    

Double clicking the bat will start the program. You are all set.

Discord integration

Edit const.py
DISCORD_WEBHOOK_URL = None to DISCORD_WEBHOOK_URL = "your webhook url" (how to get the url tutorial)
DISCORD_SEND_FILES = False to DISCORD_SEND_FILES = True
Edit callbacks to:

1
2
3
4
ENABLED_MODULES = {
    "discord": True,
    "telegram": False
}

Automatic recording of member streams

  1. Get cookies.txt file
    You can generate it from an extension: Firefox, Chrome
    Place it in the folder with other files:
    cookies txt in the folder
  2. Edit const.py
    COOKIE = None to COOKIE = "cookies.txt"
    MEMBER_DOWNLOAD = None to MEMBER_DOWNLOAD = "member\%(upload_date)s %(id)s"

If you wish to only retrieve privated member streams, don't touch the MEMBER_DOWNLOAD = None part.

Automatic recording of other live streams

Edit const.py
DOWNLOAD = None to DOWNLOAD = "live\%(upload_date)s %(id)s"
PREMIERE_DOWNLOAD = None to PREMIERE_DOWNLOAD = "premiere\%(upload_date)s %(id)s"

Rate limited?

Edit const.py
TIME_BETWEEN_CHECK = 10 to TIME_BETWEEN_CHECK = 15 or even higher
PRIVATED_DOWNLOAD_THREADS = 24 to PRIVATED_DOWNLOAD_THREADS = 16

from bonkers 🌞 with love

Edit Report
Pub: 03 Aug 2023 01:13 UTC
Edit: 05 Aug 2023 01:47 UTC
Views: 673