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
let q = prompt("検索ワード", "水着"); | |
let p = prompt("価格の上限", 10000) - 0; | |
fetch("https://www.pixiv.net/ajax/commission/page/request?lang=ja") | |
.then(response => response.json()) | |
.then(j => { | |
let body = j.body; | |
let requests = body.requests; | |
let uids = new Set(requests | |
.filter(x => JSON.stringify(x).search(q) > 0 && x.plan.planStandardPrice <= p) | |
.map(x => x.creatorUserId)); |
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
from pathlib import Path | |
import argparse | |
from random import shuffle | |
from collections import deque | |
import re | |
parser = argparse.ArgumentParser() | |
parser.add_argument("src") | |
parser.add_argument("-d", "--dst", default="dst") | |
parser.add_argument("--suffix", default=".png") |
OlderNewer