C.B.Leslie on Nostr: nprofile1q…pal3s I would skip using `wget`, and use `yt-dlp`. It was designed for ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpql3gpk6vrudg8r67swqlex5alv9ch59s4lw46kk6hekuxe2n3aczscpal3s (nprofile…al3s)
I would skip using `wget`, and use `yt-dlp`. It was designed for interacting with websites like YouTube, and parsing their data. You don't even have to download the video to get the data. Maybe something like so:
yt-dlp --skip-download --print "%(title)s" https://youtube.com/watch?v=YlAhRJjOhDg
If you have to use wget/curl, I would focus on looking at the "open graph" tags and get data about the page from there. They are often more reliable when it come to actual information about the page.
I would skip using `wget`, and use `yt-dlp`. It was designed for interacting with websites like YouTube, and parsing their data. You don't even have to download the video to get the data. Maybe something like so:
yt-dlp --skip-download --print "%(title)s" https://youtube.com/watch?v=YlAhRJjOhDg
If you have to use wget/curl, I would focus on looking at the "open graph" tags and get data about the page from there. They are often more reliable when it come to actual information about the page.