Add moviepicker.py
This commit is contained in:
parent
8dc65297b0
commit
ca541045e3
11
moviepicker.py
Normal file
11
moviepicker.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user