Skip to content

Instantly share code, notes, and snippets.

@manhbi18112005
Created February 13, 2022 03:21
Show Gist options
  • Save manhbi18112005/0c5453117a92f894fbb3b02395904417 to your computer and use it in GitHub Desktop.
Save manhbi18112005/0c5453117a92f894fbb3b02395904417 to your computer and use it in GitHub Desktop.
Scrape all the svg to steal a discord theme :V
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
@louanfontenele
Copy link

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