Skip to content

Instantly share code, notes, and snippets.

View omarroth's full-sized avatar

Omar Roth omarroth

View GitHub Profile
@omarroth
omarroth / stories.md
Last active March 12, 2023 16:49
Description of YouTube's stories feature (mobile-only)

To follow along you'll want a copy of protodec.

To get stories for a channel with UCID UCXuqSBlHAE6Xw-yeJA0Tunw:

{
  "1:0:embedded": {
    "1:0:embedded": {
      "16:5:varint": 5, // ?
      "17:6:string": "15.06.3", // App version
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-12
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-13
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-14
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-15
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-16
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-17
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-18
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-19
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-20
https://web.archive.org/web/http://irclog.perlgeek.de/marpa/2014-01-21
@omarroth
omarroth / infohash2torrent.py
Last active February 3, 2021 22:55
Given list of infohashes, create .torrent files in torrent/ directory
#!/usr/bin/env python3
import libtorrent as lt
import time
import sys
import os
# Timeout for individual torrent (in seconds)
timeout = 600
batch_size = 20
directory = "./torrents"