[go: up one dir, main page]

0% found this document useful (0 votes)
179 views3 pages

JK

This document contains configuration details for an anime module, including its name, description, developer, base URL, and various page and element configurations for the main page, search, info, and episodes sections. It parses data from the given website and outputs JSON configuration objects for each section.

Uploaded by

Liezel Levidica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views3 pages

JK

This document contains configuration details for an anime module, including its name, description, developer, base URL, and various page and element configurations for the main page, search, info, and episodes sections. It parses data from the given website and outputs JSON configuration objects for each section.

Uploaded by

Liezel Levidica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

{ "moduleName": "JKAnime", "moduleInitials": "JKAM", "moduleDesc": "Module

For Jkanime Website", "developer": "Uknown", "moduleID": "0", "moduleImage":


"https://st-listas.20minutos.es/images/2015-01/392035/4621826_640px.jpg?
1420846681", "moduleVersion": "1.5", "moduleLenguage": "ESP",
"moduleHasVideos": "true", "randomizeUserAgent": "false", "baseURL":
"https://jkanime.net/", "mainPageLeftTitle": "Last Episodes",
"mainPageRightTitle": "Last Animes", "blackListed": [ "" ], "mainPage": [
{ "request": "https://jkanime.net/", "method": "get", "headers":
[ { "key": "", "value": "" } ],
"extraInfo": [ { "value": "" } ],
"loadJavascript": "false", "javaScript": " function Header(key,value)
{ this.key = key; this.value = value; } function ExtraInfo(value) { this.value =
value; } function Output(lastEpisodes,lastAnimes) { this.lastEpisodes =
lastEpisodes; this.lastAnimes = lastAnimes; } function
LastAnimes(moduleID,image,link,title) { this.moduleID = moduleID; this.image =
image; this.link = link; this.title = title; } function
LastEpisodes(moduleID,image,link,title,episode) { this.moduleID = moduleID;
this.image = image; this.link = link; this.title = title; this.episode = episode; }
function
MainPageObject(request,headers,method,extraInfo,loadJavascript,javaScript,output) {
this.request = request; this.headers = headers; this.method = method;
this.extraInfo = extraInfo; this.loadJavascript = loadJavascript; this.javaScript =
javaScript; this.output = output; } var moduleID = '0'; var mainPageObject; var
output; var headers = []; var lastAnimes = []; var lastEpisodes = []; var extraInfo
= []; var savedData = document.getElementById('katsu-final-data'); var eps =
document.querySelector('.overview').querySelectorAll('a'); for (var i = 0; i <
eps.length; ++i) { var link = eps[i].href; var image =
eps[i].querySelector('img').src; var title = eps[i].querySelector('h2').innerHTML;
var episode = eps[i].querySelector('.episode').innerHTML.replace(/\\n/g,''); var
episode = new LastEpisodes(moduleID,image,link,title,episode);
lastEpisodes.push(episode); } var animes = document.querySelectorAll('.portada-
box'); for (var i = 0; i < animes.length; ++i) { var link =
animes[i].querySelector('a').href; var image = animes[i].querySelector('img').src;
var title = animes[i].querySelector('h2').innerHTML.replace(/\\n/g,''); var anime =
new LastAnimes(moduleID,image,link,title); lastAnimes.push(anime); }
while(lastAnimes.length % 3 != 0) { lastAnimes.push(lastAnimes[0]); } output = new
Output(lastEpisodes,lastAnimes); headers.push(new Header('',''));
extraInfo.push(new ExtraInfo('')); mainPageObject = new
MainPageObject('',headers,'',extraInfo,'','',output); var finalJson =
JSON.stringify(mainPageObject); savedData.innerHTML = finalJson;", "output":
{ "lastEpisodes": [ { "moduleID": "0",
"image": "", "link": "", "title": "",
"episode": "" } ], "lastAnimes": [ {
"moduleID": "0", "image": "", "link": "",
"title": "" } ] } } ], "search":
[ { "request": "https://jkanime.net/buscar/<searched>/<page>/",
"method": "get", "headers": [ { "key": "",
"value": "" } ], "separator": "_", "extraInfo": [
{ "value": "" } ], "loadJavascript": "false",
"javaScript": "function Header(key,value) { this.key = key; this.value = value; }
function ExtraInfo(value) { this.value = value; } function
Output(moduleID,image,link,title,type,voice,stars) { this.moduleID = moduleID;
this.image = image; this.link = link; this.title = title; this.type = type;
this.voice = voice; this.stars = stars; } function
SearchObject(request,method,headers,separator,extraInfo,loadJavascript,javaScript,o
utput) { this.request = request; this.method = method; this.headers = headers;
this.separator = separator; this.extraInfo = extraInfo; this.loadJavascript =
loadJavascript; this.javaScript = javaScript; this.output = output; } var moduleID
= '0'; var searchPageObject; var output = []; var headers = []; var extraInfo = [];
var savedData = document.getElementById('katsu-final-data'); var animes =
document.querySelectorAll('.portada-box'); for (var i = 0; i < animes.length; ++i)
{ var link = animes[i].querySelector('a').href; var image =
animes[i].querySelector('img').src; var title = animes[i].querySelector('a').title;
var anime = new Output(moduleID,image,link,title,'ANIME','SUB','★★★★★');
output.push(anime); } headers.push(new Header('','')); extraInfo.push(new
ExtraInfo('')); searchPageObject = new
SearchObject('','',headers,'_',extraInfo,'','',output); var finalJson =
JSON.stringify(searchPageObject); savedData.innerHTML = finalJson;",
"output": [ { "moduleID": "0", "image": "",
"link": "", "title": "", "type": "", "voice": "",
"stars": "" } ] } ], "info": [ { "request": "get",
"method": "get", "headers": [ { "key": "",
"value": "" } ], "extraInfo": [ { "value": ""
} ], "loadJavascript": "false", "javaScript": "function
Header(key, value) { this.key = key; this.value = value;}function ExtraInfo(value)
{ this.value = value;}function Output(moduleID, image, link, title, description,
genres, type, status, episodes) { this.moduleID = moduleID; this.image = image;
this.link = link; this.title = title; this.description = description; this.genres =
genres; this.type = type; this.status = status; this.episodes = episodes;}function
Episodes(link, moduleID, isDecodable) { this.link = link; this.moduleID = moduleID;
this.isDecodable = isDecodable;}function InfoObject(request, method, headers,
extraInfo, loadJavascript, javaScript, output) { this.request = request;
this.method = method; this.headers = headers; this.extraInfo = extraInfo;
this.loadJavascript = loadJavascript; this.javaScript = javaScript; this.output =
output;}var savedData = document.getElementById('katsu-final-data');var moduleID =
'0';var infoObject;var output;var headers = [];var extraInfo = [];var episodes =
[];var type = '';var status = '';var genres = [];var parsedJson =
JSON.parse(savedData.innerHTML);var animeInfo = document.querySelector('.info-
box');var title = animeInfo.querySelector('h2').innerText;var image =
animeInfo.querySelector('img').src;var forData = document.querySelectorAll('.info-
field');for (var x = 0; x < forData.length; x++) { var selected =
String(forData[x].innerText); if (selected.includes('Genero:')) { var gen =
forData[x].querySelectorAll('a'); for (var y = 0; y < gen.length; y++) { var genre
= gen[y].innerText.replace(', ', ''); genres.push(genre); } }}var desc =
document.querySelector('.sinopsis-box').querySelector('p').innerText;desc =
desc.replace('Sinopsis: ', '');var chapters =
document.querySelector('.navigation').querySelectorAll('a');var last =
chapters[chapters.length - 1].innerText.split(' - ')[1];var chaptersInt =
parseInt(last);for (var x = 0; x < chaptersInt; x++) { var fixedLink =
parsedJson.request + (x + 1); episodes.push(new Episodes(fixedLink, moduleID,
'false'))}output = new Output('0', image, parsedJson.request, title, desc, genres,
type, status, episodes);extraInfo.push(new ExtraInfo(''));headers.push(new
Header('', ''));infoObject = new InfoObject('', 'get', headers, extraInfo, '', '',
output);var finalJson = JSON.stringify(infoObject);savedData.innerHTML =
finalJson;", "output": { "moduleID": "0", "image": "",
"link": "", "title": "", "description": "", "genres": [
"" ], "type": "", "status": "", "episodes": [
{ "link": "", "moduleID": "", "isDecodable":
"false" } ] } } ], "episodes":
[ { "request": "empty", "method": "get", "headers": [
{ "key": "key", "value": "value" } ],
"extraInfo": [ { "value": "" } ],
"loadJavascript": "true", "javaScript": "function Header(key, value)
{ this.key = key; this.value = value;}function ExtraInfo(value) { this.value =
value;}function Output(link, linkIdentifier, moduleID, isDecodable, headers)
{ this.link = link; this.linkIdentifier = linkIdentifier; this.moduleID = moduleID;
this.isDecodable = isDecodable; this.headers = headers;}function
EpisodeObject(request, method, headers, extraInfo, loadJavascript, javaScript,
output) { this.request = request; this.method = method; this.headers = headers;
this.extraInfo = extraInfo; this.loadJavascript = loadJavascript; this.javaScript =
javaScript; this.output = output;}var moduleID = '0';var episodeObject;var output =
[];var headers = [];var extraInfo = [];var videoHeaders = [new Header('', '')];var
savedData = document.getElementById('katsu-final-data');for (var x = 0; x <
video.length; x++) { var tempDiv = document.createElement('div'); tempDiv.innerHTML
= video[x]; var link = tempDiv.firstChild.src; if (link != null) { var newLink =
link.split('?u='); if (newLink.length > 1) {newLink = newLink[1];} else {newLink =
newLink[0];} if (link.includes('fembed')) { output.push(new
Output('https://www.fembed.com/v/' + newLink, '', '0', 'false', videoHeaders)); }
else if(link.includes('jkvmixdrop')) { output.push(new
Output('https://mixdrop.co/e/' + newLink, '', '0', 'false', videoHeaders)); } else
if (link.includes('okru')) { output.push(new Output('https://ok.ru/videoembed/'
+ newLink, '', '0', 'false', videoHeaders)); } else { output.push(new Output(link,
'', '0', 'false', videoHeaders)); } }}headers.push(new Header('',
''));extraInfo.push(new ExtraInfo(''));episodeObject = new EpisodeObject('', '',
headers, extraInfo, '', '', output);var finalJson =
JSON.stringify(episodeObject);savedData.innerHTML = finalJson;", "output": [
{ "link": "", "moduleID": "", "linkIdentifier": "",
"isDecodable": "false", "headers": [ { "key":
"key", "value": "value" } ] } ]
} ] }

You might also like