Open hjyssg opened 3 years ago
function parseLink(response){ const $ = cheerio.load(response.data);
const links = $("a[title^='More']");
for(let ii = 0; ii < links.length; ii = ii + 2){
const infoLink = links[ii];
const authorLink = links[ii+1];
let str = authorLink.textContent;
let tokens = str.split("/")
//mil (Xration)
//Morinaga Milk / 森永みるく (Myao)
if(tokens.length > 1){
str = tokens[1];
}
const sep = /[ \.,\/#!$%\^&&\*;:{}=\-_`~()\[\]\–-、`~?!@@、。/『』「」;’:・|=+]/;
const author = str.split(sep).filter(e => !!e);
}
}