animesama-scrapper
v1.0.0
Published
Petit module npm pour scrapper https://anime-sama.fr
Downloads
8
Maintainers
Readme
AnimeSama Scrapper
Installation
npm i animesama-scrapper
Example
const
{
getBase,
getCatalog,
search,
info,
play
} = require("animesama-scrapper");
(async () => {
await getBase()
// -> {OBJECT}
// {
// calendrier: {
// lundi: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object]
// ],
// mardi: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ],
// mercredi: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object]
// ],
// jeudi: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object]
// ],
// vendredi: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ],
// samedi: [
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object]
// ],
// dimanche: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ]
// },
// animes: {
// recent: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ],
// classiques: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ],
// pepites: [
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object],
// [Object], [Object], [Object]
// ]
// }
// }
await getCatalog(1);
// -> {OBJECT}
// {
// max: '23',
// data: [
// {
// url: '/anime/drcl-midnight-children',
// img: 'https://cdn.statically.io/gh/Anime-Sama/IMG/img/contenu/drcl-midnight-children.jpg',
// titre: '#DRCL midnight children',
// titre2: ''
// },
// {
// url: '/anime/100-jours-avant-ta-mort',
// img: 'https://cdn.statically.io/gh/Anime-Sama/IMG/img/contenu/100-jours-avant-ta-mort.jpg',
// titre: '100 Jours Avant Ta Mort',
// titre2: 'Last Hundred Days Till She Dies, Kimi ga Shinu Made Ato Hyaku Nichi'
// },
// ...
// ]
// }
await search("one piece");
// -> [ARRAY]
// [
// {
// url: '/anime/one-piece/',
// img: 'https://cdn.statically.io/gh/Anime-Sama/IMG/img/contenu/one-piece.jpg',
// titre: 'One Piece',
// titre2: ''
// }
// ]
await info("one-piece");
// -> {OBJECT}
// {
// titre: 'One Piece',
// titre2: '',
// cover: 'https://cdn.statically.io/gh/Anime-Sama/IMG/img/contenu/one-piece.jpg',
// synopsis: `Il fut un temps où Gold Roger était le plus grand de tous les pirates, le "Roi des Pirates" était son surnom. A sa mort, son trésor d'une valeur inestimable connu sous le nom de "One Piece" fut caché quelque part sur "Grand Line". De nombreux pirates sont partis à la recherche de ce trésor mais tous sont morts avant même de l'atteindre. Monkey D. Luffy rêve de retrouver ce trésor légendaire et de devenir le nouveau "Roi des Pirates". Après avoir mangé un fruit du démon, il possède un pouvoir lui permettant de réaliser son rêve. Il lui faut maintenant trouver un équipage pour partir à l'aventure !`,
// genres: 'Action, Aventure, Comédie, Drame, Fantastique',
// avancement: 'Aucune donnée.',
// correspondance: 'Aucune donnée.',
// saison: {
// anime: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ],
// manga: [ [Object], [Object] ],
// special: [
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object], [Object],
// [Object]
// ]
// }
// }
await play("one-piece", "saison1", "vostfr", true);
// -> {OBJECT}
// {
// special: '',
// msg: '',
// img: 'https://cdn.statically.io/gh/Anime-Sama/IMG/img/contenu/one-piece.jpg',
// name: 'One Piece',
// vf: true,
// js: [
// { number: '111111111111111111', lecteur: [Array] }, // MP4 video
// { number: '1', lecteur: [Array] },
// { number: '2', lecteur: [Array] }
// ],
// jss: 'var eps111111111111111111 = [\n' +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_01_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_02_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_03_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_04_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_05_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_06_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_07_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_08_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_09_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_10_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_11_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_12_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_13_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_14_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_15_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_16_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_17_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_18_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_19_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_20_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_21_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_22_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_23_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_24_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_25_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_26_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_27_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_28_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_29_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_30_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_31_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_32_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_33_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_34_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_35_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_36_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_37_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_38_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_39_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_40_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_41_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_42_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_43_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_44_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_45_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_46_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_47_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_48_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_49_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_50_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_51_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_52_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_53_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_54_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_55_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_56_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_57_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_58_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_59_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_60_VOSTFR.mp4',\n" +
// "'https://s22.anime-sama.fr/videos/One%20Piece/VOSTFR/One_Piece_61_VOSTFR.mp4',];\n" +
// " var eps1 = ['https://www.myvi.top/embed/soyefhptfzgwtnwx3asgc9jjie',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/7kotfswn8c6rmq4gwq8rephbdc',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/ru4t9bndzu3wbcs7r6me7cm59e',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702491',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/m3ftdw3efh7r3m393tgjujy3ie',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/1assy4ir3o7wdyuxtytywizxry',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/9wynq3hn7aywxrteedbiueg3jo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/r76w8dj4pzpr7cuhz1nas5u9yo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/wm6yiz4goo8rxkuj74qwkxoqsr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/67ue69fbfyqrjpzpkr64d1hfxr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/r644c4b7qmrwxxoixke4h356pw',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/3e8rqdettfcwtce9aund491yfr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/ka5jhkhk5niw9r5d9nyzk38jue',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/a4yb76dooa4r9bfhe8sko9sduw',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/k69upqy9zk5rdfekdhhtdn55dr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/bwiz4e3npenw5fts33wpcqow4a',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/7zf1uq5p5b6rbgy37yjg4459wa',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/qrtcxec5sfqrtb3ep59bgak1xo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/7n5nk9bntssrtpehzu99jnrpxe',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702767',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/ggacsae3xk3wzczppaeute3icw',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/qpizamrsywgwdn8kwni3ze7kze',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/q7o7f1aagohw7krzk943qcy54w',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/am9epgemthjr3cp5o7a7nqagwr',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702783',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/hyxrpk169auw9yngz8d8x5tyyw',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/g1dzomymj3ar8qsq8pmdbyzoua',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/t3mf9doe491wmrmeyu1krbthia',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/p1nx1fx8eztrpnrrxrdxibmg3c',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/548enxces4iw8x5axpiu99gw7h',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702800',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702816',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702832',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702833',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702834',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/yush783zpfew7j6jyue1yf45ne',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/j5exha9bmrfwbxiby3wwwqgruh',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/6u6zffdrohtwdx4bm58d91xfcy',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/csjw1hyr3sgrmr5kh6huut9nbh',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/3gbjzhymwd9wpxa5989con5kqr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/p74sxnqh8g1r8q7p3soepzoybo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/y1cnujr35g4r8gyxkb9qii1beo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/1g141tfw7z3w3bxhrnzq8oq4nc',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/mwwkysr5jqrwfgdgw4h6hupw8c',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/1xfdogmd9ozw8raceakiyouwxw',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/b3k146rk15ywpqyhwcsxbx4s7y',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/1hosuagbps4rjfn5ywm3ixo1hc',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/xq4x7e4qmjqwmptxz8jqof9qyo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/a5z5wjixxbewffrjtnwgc7cgjc',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/zodk96tb9derxksh3h49pgikuh',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/1uo78extnxrrp85puc1p1owwce',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/sft8ksoqtfww8bfnz5mia31rjo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/u9r6zbgo4kgwpe3z4jtebprbny',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702835',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702836',\n" +
// "\t\t\t\t'https://video.sibnet.ru/shell.php?videoid=4702837',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/z3d7m77bgrfwzeqoet89kwciih',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/tu548mqf6eprix1qrjawcazmwo',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/doeghe5nhx8rbprpjq7zxnbejr',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/sardsmfpjnhr9q65zau9pp6kna',\n" +
// "\t\t\t\t'https://www.myvi.top/embed/ukpuijkp6guw78e3aeu9a6i6je', ];\n" +
// " var eps2 = ['https://video.sibnet.ru/shell.php?videoid=4826196',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826200',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826204',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826207',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826209',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826211',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826212',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826156',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826157',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826158',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826159',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826162',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826167',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826168',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826169',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826170',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826171',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826173',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826174',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4702767',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826213',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826215',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826216',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826217',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826220',\n" +
// "\t'https://video.sibnet.ru/shell.php?videoid=4826222',\n" +
// "\t'https://video.sibnet.ru/shell.php?vi"... 1854 more characters
// }
})()