system changes
This commit is contained in:
parent
93c1e9e304
commit
c8c3ad82a5
3 changed files with 32 additions and 0 deletions
|
@ -51,6 +51,7 @@ Import configurations for programs and install programs with no configuration.
|
|||
python312Packages.black
|
||||
python312Packages.pylint
|
||||
python312Packages.python-lsp-server
|
||||
python312Packages.requests
|
||||
ripgrep
|
||||
rsync
|
||||
rustup
|
||||
|
|
12
macos.local/flake/home/scripts/yt-to-rss.py
Normal file
12
macos.local/flake/home/scripts/yt-to-rss.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
import sys
|
||||
|
||||
channel_link = sys.argv[1]
|
||||
|
||||
response = requests.get(channel_link)
|
||||
soup = BeautifulSoup(response.content, "html.parser")
|
||||
rss_link = soup.find("link", title="RSS")
|
||||
rss_url = rss_link.get("href")
|
||||
|
||||
print(rss_url)
|
19
macos.local/flake/home/scripts/yt-to-rss.py.org
Normal file
19
macos.local/flake/home/scripts/yt-to-rss.py.org
Normal file
|
@ -0,0 +1,19 @@
|
|||
#+title: YouTube Channel to RSS Link
|
||||
|
||||
Quick script to get the RSS link for a YouTube channel so I don't have to visit the website.
|
||||
|
||||
#+begin_src python
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
import sys
|
||||
|
||||
channel_link = sys.argv[1]
|
||||
|
||||
response = requests.get(channel_link)
|
||||
soup = BeautifulSoup(response.content, "html.parser")
|
||||
rss_link = soup.find("link", title="RSS")
|
||||
rss_url = rss_link.get("href")
|
||||
|
||||
print(rss_url)
|
||||
|
||||
#+end_src
|
Loading…
Add table
Reference in a new issue