This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# Merges rated songs with new songs while preferring more recent songs | |
""" Example output | |
5 new songs | |
9 rated songs | |
Weights: [1.0, 0.5, 0.333 ... 0.143, 0.125, 0.111] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
user_id = | |
page = 1 | |
save_file = f"Rated songs by user {user_id}.txt" | |
all_song_ids = [] | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' Output (sorted by date): | |
λ "VocaDB Wiki revision history.py" | |
Found 77 pages | |
2024-01-03 10:22:51+00:00: wiki/59 'Content policy' (version 28) edit by Shiroizu | |
2024-01-01 13:54:17+00:00: wiki/86 'Album entry editing' (version 11) edit by Shiroizu | |
2024-01-01 13:54:02+00:00: wiki/83 'Artist entry editing' (version 19) edit by Shiroizu | |
2024-01-01 13:53:30+00:00: wiki/89 'Song entry editing ' (version 19) edit by Shiroizu | |
... | |
2023-02-16 03:32:05+00:00: wiki/53 'Management guidelines / golden rules' (version 24) edit by andreoda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Download https://www.autohotkey.com/download/ahk-v2.exe | |
; The correct tab must be open (https://vocadb.net/playlist) | |
; Window minified or fully open | |
browser := "Firefox" | |
; "Chrome" works as well | |
coords := "x1000 y1000" | |
; Verify the correct "Mouse Position" (Screen) using "AutoHotkey Window Spy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json, time, os | |
# Recheck files containing Niconico links (to see if a song entry exists on VocaDB) | |
# Accepted line formats: | |
# http://www.nicovideo.jp/watch/sm42561422 13161 サマーリウム feat.小春六花 | |
# http://www.nicovideo.jp/watch/sm42561422 | |
# sm42561422 | |
event_id = | |
file_dir = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Outputs a list of artists based on rated songs by the user (sorted by total song score). | |
# Useful for finding more artists to follow. | |
# Output example | |
''' | |
Favs Likes Name URL | |
10 2 オカメP https://vocadb.net/Ar/87 | |
5 2 まらしぃ https://vocadb.net/Ar/494 (not following) | |
3 4 *Luna https://vocadb.net/Ar/1620 (not following) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import requests | |
userID = | |
login = { | |
"UserName": "", | |
"password": "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:( function() { var ch = (window.location.host == "ch.nicovideo.jp"); if (window.location.host == "www.nicolog.jp" && window.location.pathname.startsWith("/user/")) { var videos = document.querySelectorAll("table a"); var limit = videos.length - 1; var i = -1; var delay = 500; function addButton(linkText, color, buttonLink, floatDirection, btnLocation) { var btn = document.createElement("a"); var textNode = document.createTextNode(linkText); btn.appendChild(textNode); btn.style.backgroundColor = color; btn.style.color = "black"; btn.style.padding = "7px 14px"; btn.style.border = "1px solid black"; btn.style.float = floatDirection; if (floatDirection == "right") { btn.style.float = "left"; btn.style.marginLeft = "10px"; } else { btn.style.marginTop = "17px"; } btn.href = buttonLink; btn.target = "_blank"; document.querySelector(btnLocation).appendChild(btn); } function checkVideos() { setTimeout(function() { i++; var videoId = videos[i].href.split("?")[0].split("/")[4]; var btnLocation = 'a[href="wat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import requests | |
userID = | |
login = { | |
'UserName': 'user', | |
'password': 'pass' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import os | |
# --- # --- # --- # --- # | |
userID1 = 1 # replace | |
userID2 = 2 # replace | |
# --- # --- # --- # --- # |