Skip to content

Instantly share code, notes, and snippets.

@jarrodnorwell
Created October 20, 2023 05:29
Show Gist options
  • Save jarrodnorwell/d0186d75db075e8f483a0fe9c28614ee to your computer and use it in GitHub Desktop.
Save jarrodnorwell/d0186d75db075e8f483a0fe9c28614ee to your computer and use it in GitHub Desktop.
from re import search
from requests import get
print(search(r"views\":{\"simpleText\":\"(.*?)\"}", get(f"https://www.youtube.com/watch?v={input("Enter YouTube Video ID: ")}").text).group(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment