Niconico_URL_extractor
#自作プログラム
ニコニコ動画の閲覧履歴ページの要素をコピーしてはっつけるとサムネイルに変換する事ができるツール
まぁ、AI製です
Google Colab
code:python
# @title デフォルトのタイトル テキスト
input_string = "" # @param {"type":"string"}
import re
def extract_nicovideo_urls(text):
pattern = r"sm\d+"
# Find all non-overlapping matches in the text
urls = re.findall(pattern, text)
return urls
extracted_urls = extract_nicovideo_urls(input_string)
for url in extracted_urls:
print(f"https://nicothumb2img.vercel.app/image/{url}#.png https://nico.ms/{url}")