Created
February 13, 2022 03:21
-
-
Save manhbi18112005/0c5453117a92f894fbb3b02395904417 to your computer and use it in GitHub Desktop.
Scrape all the svg to steal a discord theme :V
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 request from "request"; | |
import fs from 'fs'; | |
var arr = ["discord", "emote", "betterdiscord", "code_braces", "puzzle", "palette", "close", "file", "file_upload", "file_document", "file_archive", | |
"file_code", "file_webcode", "file_image", "file_video", "file_table", "file_pdf", "file_music", "expand_more", "verified", "popout", "person", "user_profile", "security", | |
"apps", "link", "nitro", "server_boost", "subscriptions", "gift", "payment", "camera", "accessibility", "mic", "chat", "notifications", "keyboard", "language", | |
"windows", "linux", "videocam", "bugs", "games", "aspect_ratio", "history", "hypesquad", "exit" | |
]; | |
var arrle = arr.length; | |
for (var i = 0; i < arrle; i++) { | |
const u = 'https://clearvision.gitlab.io/icons/' + arr[i] + '.svg/'; | |
const filename = "./svg/" + arr[i] + ".svg"; | |
request({ | |
uri: u | |
}, | |
function (error, response, body) { | |
fs.writeFileSync(filename, body, (err) => { | |
if (err) | |
console.log(err); | |
else { | |
console.log("File written successfully\n"); | |
console.log("The written has the following contents:"); | |
} | |
}); | |
} | |
); | |
} | |
// Copyright: MyT - No Name Studio |
how can i use it?
wait, how could u find this? 🙃
its public
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wait, how could u find this? 🙃