This commit is contained in:
Tobias Weise 2024-08-05 22:40:22 +02:00
parent dc21582096
commit 2f81a0aba5
2 changed files with 7 additions and 0 deletions

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
requests

6
yt2rss.py Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import requests, sys, re
try:
print("https://www.youtube.com/feeds/videos.xml?channel_id="+re.findall(r'''{"key":"browse_id","value":"([\w\d_\-]*)"}''', requests.get(sys.argv[1]).text)[0])
except:
pass