Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
6 views
3 pages
5
Uploaded by
ScribdTranslations
AI-translated document
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download
Save
Save 5 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Translate
Report
0 ratings
0% found this document useful (0 votes)
6 views
3 pages
5
Uploaded by
ScribdTranslations
AI-translated document
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save 5 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Translate
Report
Download
Save 5 For Later
You are on page 1
/ 3
Search
Fullscreen
4Anime
module to get data from 4anime
moduleImage
https://pbs.twimg.com/profile_images/825927310314385409/mWPy7F7u.jpg
2.0
false
Last Episodes
"blackListed": [ "" ], "mainPage": [ { "request":
https://4anime.to/
key
value
function Header(key, value) { this.key = key; this.value = value;}function
ExtraInfo(value) { this.value = value; }
{ 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
link; this.title = title; this.episode = episode;}function MainPageObject(request,
headers, method, extraInfo, loadJavascript, javaScript, output) { this.request =
this.headers = headers; this.method = method; this.extraInfo = extraInfo;
loadJavascript
output;}var moduleID = '123';var mainPageObject;var output;var headers = [];var
lastAnimes = [];var lastEpisodes = [];var extraInfo = [];var savedData =
document.getElementById('katsu-final-data');var animes =
document.getElementById('populartodaycontent').querySelectorAll('div');for (var x =
0; x < animes.length; x++) { var id = animes[x].getAttribute('id'); if (id ==
'headerDIV_3') { try { var link = animes[x].querySelector('a').href; var image =
'https://4anime.to' + animes[x].querySelector('img').src; var title =
animes[x].querySelector('#headerA_7').innerText; var newAnime = new
LastAnimes(moduleID, image, link, title); if (newAnime != null)
An error occurred
console.log(err); } }}var eps =
document.getElementById('urcontent').querySelectorAll('div');for (var x = 0; x <
eps.length; x++) { var id = eps[x].getAttribute('id'); if (id == 'headerDIV_3'
try { var link = eps[x].querySelector('a').href; var image = 'https://4anime.to'
+ eps[x].querySelector('img').src; var title =
eps[x].querySelector('#headerA_7').innerText; var epi =
eps[x].querySelector('#headerA_8').innerText; var newEp = new
LastEpisodes(moduleID, image, link, title, epi); if (newEp != null)
{ lastEpisodes.push(newEp); } } catch (err) { console.log('error found');
console.log(err); } }} while (lastEpisodes.length % 2 != 0)
{ lastEpisodes.push(lastEpisodes[0]);}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":
0
link
lastAnimes
0
link
"search": [ { "request": "https://4anime.to/?s=<searched>",
get
value
value
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;
image
this.voice = voice; this.stars = stars; } function
SearchObject(request, method, headers, separator, extraInfo, loadJavascript, javaScript, o
this.request = request; this.method = method; this.headers = headers;
this.separator = separator; this.extraInfo = extraInfo; this.loadJavascript =
loadJavascript; this.javaScript = javaScript; this.output = output; } function
getType(title) { if (title.includes('Dub')) { return 'Dub'; } return 'Sub'; } var
moduleID = '123'; var searchPageObject; var output = []; var headers = [];
extraInfo = []; var savedData = document.getElementById('katsu-final-data'); var
animes = document.querySelector('.container').querySelectorAll('a'); for (var i =
0; i < animes.length; ++i) { try { var link = animes[i].href; var image =
animes[i].querySelector('img').src; var title =
animes[i].querySelector('div').innerText; var anime = new
Output(moduleID,image,link,title,'Anime',getType(title),'★★★★★'); var searchCheck =
animes[i].innerText; if (searchCheck != 'Search') { output.push(anime); }
catch(err) { console.log(err); } } headers.push(new Header('', ''));
The provided text does not contain translatable content.
JSON.stringify(searchPageObject); savedData.innerHTML = finalJson;
"output": [ { "moduleID": "0", "image": "",
link
stars
get
https://4anime.to/
value
function Header(key, value) { this.key = key; this.value = value;}function
ExtraInfo(value) { this.value = value;}function Output(moduleID, image, link,
title
image
this.genres = genres; this.type = type; this.status = status;
this.episodes = episodes;}function Episodes(link, moduleID, isDecodable)
link
isDecodable;}function InfoObject(request, method, headers, extraInfo,
loadJavascript, javaScript, output) { this.request = request; this.method = method;
this.headers
loadJavascript; this.javaScript = javaScript; this.output = output;}var savedData =
document.getElementById('katsu-final-data');var moduleID = '123';var infoObject;var
output;var headers = [];var extraInfo = [];var episodes = [];var type = ' ';var
status
JSON.parse(savedData.innerHTML);var title =
document.querySelector('#recenttext').innerText;var image = 'https://4anime.to' +
document.querySelector('.cover').querySelector('img').src;var genresArray =
document.querySelectorAll('.item');desc =
document.querySelector('.synopsis').innerText;for (var x = 0; x <
genresArray.length; x++) { genres.push(genresArray[x].innerText);}var chapters =
document.querySelector('.single-anime-category').querySelectorAll('a');for (var x =
0; x < chapters.length; x++) { var fixedLink = chapters[x].href; episodes.push(new
Episodes(fixedLink, moduleID, 'false'));}output = new Output(moduleID, 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;var req = new
XMLHttpRequest();req.open('GET', 'https://www.google.com/',
false);req.send(null);var req = new XMLHttpRequest();req.open('GET',
output
0
description
status
moduleID
} ], "episodes": [ { "request": "empty", "method": "get",
"headers": [ { "key": "key", "value": "value" }
], "extraInfo": [ { "value": "" } ],
true
key
value;}function Output(link, linkIdentifier, moduleID, isDecodable, headers)
this.link
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;}function prepend(value, array) { var newArray =
array.slice(); newArray.unshift(value); return newArray;}var moduleID = '123';var
episodeObject;var output = [];var headers = [];var extraInfo = [];var savedData =
document.getElementById('katsu-final-data');var
parsedJson = JSON.parse(savedData.innerHTML); var videoHeaders = [new
Header('Referer', parsedJson.request)];var finalLinks = [];var names = [];try
{ finalLinks.push(document.querySelector('video').src); names.push('Video');} catch
(err) { console.log(err); } try
finalLinks.push(document.querySelector('source').src); names.push('Source');
catch (err) { console.log(err); } try
finalLinks.push(document.querySelector('.mirror_dl').href);
names.push('Mirror');} catch (err) { console.log(err);}let scripts =
document.querySelectorAll('script');for (var x = 0; x < scripts.length; x++) { let
script = scripts[x].innerHTML; if (script.includes('|controls|')) { eval(script); }
try { var data = document.querySelectorAll('source'); data = data[data.length -
1].src; finalLinks.push(data); names.push('New Decoded'); } catch
There was an error.
finalLinks.length; x++) { var outputLink = finalLinks[x]; if (finalLinks[x] != ''
The code snippet cannot be translated as it is programming code and does not contain a translatable text.
output[y].link; if (checkedLink.includes(outputLink)) { found = true; } } if (!
found) { output.push(new Output(finalLinks[x], names[x], moduleID, 'true',
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": "",
linkIdentifier
"headers": [ { "key": "key", "value":
value
You might also like
Extreme Programming For Safire Solutions
PDF
90% (10)
Extreme Programming For Safire Solutions
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
5
PDF
No ratings yet
5
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
4 Anime
PDF
No ratings yet
4 Anime
3 pages
How to a Developers Guide to 4k: Developer edition, #3
From Everand
How to a Developers Guide to 4k: Developer edition, #3
Xinc Cyberwizard
No ratings yet
Mass Communication Essay
PDF
No ratings yet
Mass Communication Essay
8 pages
Play The World Cup of Very Very Distant Football
PDF
No ratings yet
Play The World Cup of Very Very Distant Football
2 pages
Task 1 Database in SPSS
PDF
No ratings yet
Task 1 Database in SPSS
5 pages
Current International Accounting Standards
PDF
No ratings yet
Current International Accounting Standards
2 pages
Autopsy of A Snowflake
PDF
No ratings yet
Autopsy of A Snowflake
3 pages
Americanisms
PDF
No ratings yet
Americanisms
10 pages
Quality Audit Report
PDF
No ratings yet
Quality Audit Report
20 pages
The Social Sciences and Their Field of Study
PDF
No ratings yet
The Social Sciences and Their Field of Study
5 pages
Request For Assignment of Cuc To The SNCP
PDF
No ratings yet
Request For Assignment of Cuc To The SNCP
3 pages
Moses Makosso: Year 2020 - 2021
PDF
No ratings yet
Moses Makosso: Year 2020 - 2021
8 pages
3) Practical Activity 1 Property Management and Rental Answers
PDF
No ratings yet
3) Practical Activity 1 Property Management and Rental Answers
2 pages
Resolved Text Commentary Rousseau
PDF
No ratings yet
Resolved Text Commentary Rousseau
2 pages
Model of Reengagement Procedure and Payment of Salaries and Other Benefits
PDF
No ratings yet
Model of Reengagement Procedure and Payment of Salaries and Other Benefits
4 pages
Definition of Conditional Sale - Robert
PDF
No ratings yet
Definition of Conditional Sale - Robert
12 pages
The Political System of Almond and Powell
PDF
No ratings yet
The Political System of Almond and Powell
9 pages
Official Mexican Standard NOM
PDF
No ratings yet
Official Mexican Standard NOM
4 pages
Control Systems of Provided Services
PDF
No ratings yet
Control Systems of Provided Services
3 pages
Format N
PDF
No ratings yet
Format N
3 pages
Isabel I CEO
PDF
No ratings yet
Isabel I CEO
7 pages
Buyer Motivation
PDF
No ratings yet
Buyer Motivation
1 page
The Six Pillars of Self-Esteem by Nathaniel Branden
PDF
No ratings yet
The Six Pillars of Self-Esteem by Nathaniel Branden
13 pages
Medication Dispensing System
PDF
No ratings yet
Medication Dispensing System
11 pages
Internal Regulations For The Administration of Local Churches Acym
PDF
No ratings yet
Internal Regulations For The Administration of Local Churches Acym
20 pages
Steps For Business Formation
PDF
No ratings yet
Steps For Business Formation
20 pages
Simón Planas
PDF
No ratings yet
Simón Planas
4 pages
Thyroid Case Study
PDF
No ratings yet
Thyroid Case Study
9 pages
Letter To A Friend William Shakespeare
PDF
No ratings yet
Letter To A Friend William Shakespeare
2 pages
Vdmwyf Full
PDF
No ratings yet
Vdmwyf Full
1 page
Code of Ethics For Administrators
PDF
No ratings yet
Code of Ethics For Administrators
2 pages
TYLER
PDF
No ratings yet
TYLER
3 pages
Rizwan Shoukat PDF
PDF
No ratings yet
Rizwan Shoukat PDF
3 pages
Reading: Form B - Extra Reading
PDF
No ratings yet
Reading: Form B - Extra Reading
3 pages
1Z0 084 Demo
PDF
No ratings yet
1Z0 084 Demo
4 pages
122 Penn ST LRev 613
PDF
No ratings yet
122 Penn ST LRev 613
33 pages
The Girl With The Broken Heart Lurlene Mcdaniel Download
PDF
No ratings yet
The Girl With The Broken Heart Lurlene Mcdaniel Download
27 pages
Datasheet MB980 Ibase
PDF
No ratings yet
Datasheet MB980 Ibase
1 page
Message
PDF
No ratings yet
Message
3 pages
Unit 03 The Motherboard
PDF
No ratings yet
Unit 03 The Motherboard
17 pages
VAC Exam Schedule Term-II
PDF
No ratings yet
VAC Exam Schedule Term-II
1 page
Machine Learningbased Lie Detectorappliedtoa Collectedand Annotated Dataset
PDF
No ratings yet
Machine Learningbased Lie Detectorappliedtoa Collectedand Annotated Dataset
10 pages
Online Safety Awareness Past Paper
PDF
No ratings yet
Online Safety Awareness Past Paper
4 pages
Electrical Drawings Explained
PDF
No ratings yet
Electrical Drawings Explained
80 pages
Persistent Systems Senior Data Engineer
PDF
No ratings yet
Persistent Systems Senior Data Engineer
5 pages
Machine Elements Quiz 2
PDF
No ratings yet
Machine Elements Quiz 2
15 pages
Manual Theta76 en
PDF
No ratings yet
Manual Theta76 en
154 pages
Scales of Data
PDF
No ratings yet
Scales of Data
6 pages
Data Struture and Alghorithem
PDF
No ratings yet
Data Struture and Alghorithem
46 pages
Dumpstate Board
PDF
No ratings yet
Dumpstate Board
33 pages
SPM Presentation
PDF
No ratings yet
SPM Presentation
12 pages
Patient Management Information - System
PDF
No ratings yet
Patient Management Information - System
12 pages
202441551502IA Alatishe
PDF
No ratings yet
202441551502IA Alatishe
1 page
Simple Presentation On Artificial Intelligence
PDF
No ratings yet
Simple Presentation On Artificial Intelligence
7 pages
15B11CI212 - Theoretical Foundations of Computer Science Tutorial 11 Solutions Automata Theory
PDF
No ratings yet
15B11CI212 - Theoretical Foundations of Computer Science Tutorial 11 Solutions Automata Theory
7 pages
ZPMC - Salalah: Bromma (M) SDN BHD
PDF
No ratings yet
ZPMC - Salalah: Bromma (M) SDN BHD
19 pages
Dasari Teja Sree: Career Objective
PDF
No ratings yet
Dasari Teja Sree: Career Objective
3 pages
Studi Kasus Airway
PDF
No ratings yet
Studi Kasus Airway
58 pages
Varietal Discrimination of Guava Psidium Guajava Leaves Using Multi Features Analysis
PDF
No ratings yet
Varietal Discrimination of Guava Psidium Guajava Leaves Using Multi Features Analysis
19 pages
Untitled
PDF
No ratings yet
Untitled
44 pages
ARMA RFM 6T6R B20 360W Datasheet
PDF
No ratings yet
ARMA RFM 6T6R B20 360W Datasheet
4 pages