From 6df68ff254b4021ec07cd3e4995ef89309dc8bdd Mon Sep 17 00:00:00 2001 From: minnix Date: Wed, 15 Jan 2025 20:41:48 +0000 Subject: [PATCH] Upload files to "/" The script we use to pick movies on The Linux Lugcast --- moviepicker.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 moviepicker.py diff --git a/moviepicker.py b/moviepicker.py new file mode 100644 index 0000000..24aa335 --- /dev/null +++ b/moviepicker.py @@ -0,0 +1,11 @@ +#This script grabs a random movie from the lugcast movie list for the boys to watch and review + +import requests +import random + +url = "https://git.minnix.dev/minnix/lugcast/raw/branch/main/movie_list" +response = requests.get(url) +lines = response.text.split("\n") +valid_lines = [line for line in lines if line and not line.startswith("#")] +random_line = random.choice(valid_lines) +print(random_line) \ No newline at end of file