Added kareoki. No search function though

This commit is contained in:
ION606
2022-03-10 20:30:03 -05:00
parent 8d1d633703
commit cdacc6c03e
6 changed files with 1261 additions and 19 deletions
+21
View File
@@ -0,0 +1,21 @@
module.exports ={
name: "scraper",
description: ".....",
execute(message, args) {
const axios = require('axios');
const cheerio = require('cheerio')
const url = args[0];
axios(url)
.then(response => {
const html = response.data;
const $ = cheerio.load(html);
lyrics = $('.para_row').text();
//message.channel.send(lyrics);
console.log(lyrics);
})
.catch(console.error);
}
}
//TEST: https://www.karaoketexty.cz/texty-pisni/zoegirl/plain-170199