Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request = require('request');
- var cheerio = require('cheerio');
- var url = 'https://www.mangaupdates.com/series.html?id=33';
- request(url, function(err, resp, body){
- $ = cheerio.load(body);
- var title = $('span.releasestitle.tabletitle').text();
- var dict = [];
- categories = $('div.sCat'); //use your CSS selector here
- content = $('div.sContent');
- $(categories).each(function(i, item){
- // console.log($(item).text() + '\n');
- dict[i] = [];
- dict[i][0] = $(item).text();
- });
- $(content).each(function(j, jtem){
- // console.log($(content).text() + '\n');
- dict[j][1] = $(jtem).text();
- });
- for(i = 0; i < dict.length; i++) {
- dict[i][1] = dict[i][1].trim();
- console.log(i + ' [\'' + dict[i][0] + '\']' + ', ' + '[\'' + dict[i][1] + '\']');
- }
- var showArtist = '';
- if(dict[18][1] === dict[19][1]) {
- showArtist = ' by Author/Artist: ' + dict[18][1];
- }
- if(dict[18][1] != dict[19][1]) {
- showArtist = ' by Author(s): ' + dict[18][1] + ' & Artist(s): ' + dict[19][1];
- }
- console.log('\n' + title + showArtist + ' | Year: ' + dict[20][1] + '\nGenres: ' + dict[14][1] + ' | Latest release: ' + dict[5][0] + '. \nURL: ' + url);
- });
- Output:
- [nodemon] restarting due to changes...
- [nodemon] starting `node index.js`
- 0 ['Description'], ['Before the Pirate King was executed, he dared the many pirates of the world to seek out the fortune that he left behind in one piece.As a
- child, Monkey D. Luffy dreamed of becoming the King of the Pirates. But his life changed when he accidentally gained the power to stretch like rubber...at th
- e cost of never being able to swim again! Now Luffy, with the help of a motley collection of nakama, is setting off in search of "One Piece", said to be the g
- reatest treasure in the world.Note: The best-selling series in manga history.Was a finalist for the Tezuka Osamu Cultural Prize from 2000 to 2002. The German
- translation of Vol 44 won the Sondermann audience award at the Frankfurt Book Fair Comics Centre in 2005.Won the 41st Japan Cartoonists Association Award Gran
- d Prize alongside Neko Darake in 2012.']
- 1 ['Type'], ['Manga']
- 2 ['Related Series'], ['Chopperman (Spin-Off)Cross Epoch (Side Story)One Piece (Databook) (Spin-Off)One Piece Film: Gold (Spin-Off)One Piece Party (Spin-Off)O
- ne Piece x Toriko (Side Story)Wanted! (Alternate Story)']
- 3 ['Associated Names'], ['ワンピースوان پیسون بيس海盗路飞海贼王航海王วันพีซ원피스']
- 4 ['Groups Scanlating'], ['A-TeamAkatsukiAmaitsumiAngelz
- More...
- Apt 6
- Asean Punk Scanlations
- BWM
- Basement Scan
- Binktopia
- Bod Rangzen
- Buried With Manga
- Chikusho
- Cowbouy1
- Darkreaper70
- Ddadain
- Dragon Nest
- Earth's Utopia
- Endless
- Fiery Dragon
- Franky House
- Franky-Family Scanlations
- Ganzxel
- Happy Family
- Harrmd
- Hitsugaara
- Hueco Mundo
- Hyena-Scans
- I Eat Manga
- INP-Mangaz
- Ichiban
- Illuminati-Manga
- Imangascans
- Jaimini's Box
- Jinchuuriki
- Jump-Scans
- KEFI
- KaNx
- KyuubiMaster
- Lazy Ass Scans
- Legend Manga
- Mada^2 Dane
- Manga Globe
- Manga Panda
- MangaBreeze
- MangaBurn
- MangaCanyon
- MangaHelpers
- MangaShare
- MangaStream
- MangaTeers
- MangaZone
- Mangacurse
- Mangafresh
- Mangajoy
- Mangarule
- Minna-scan
- Mr Prince
- Muda Scantrad
- NBST
- NarutoSoul
- Nitoryu
- Noizy Scanlations
- Null
- Nytrogyn
- Obxist
- Oh My Enel Scans
- One Piece HQ
- OnePiece HQ Scanlations
- OnePieceBuzz
- OnePiecefag
- PowerManga
- Puffing Tom Scanlations
- Quickmanga
- Rampage
- ReadManga.Today
- Readable Scan
- Red Hawk Scanlations
- Rush
- Ryukage
- Scans del Piratas Congeladas
- Shiranui
- SleepyFans
- Some-stuffs
- Stealth
- Strawhat Scanlations
- Sugooi
- SukiKim Scans
- Tek43
- TronboneManga
- TurtleHermit
- Village Idiot
- Viz
- Vizard Scanlation
- Warrd
- We Hate Manga
- Whatever
- Xmas-Scanlation
- Yami Scanlations
- Yonkou Productions
- [N-S]
- bludshock
- bodna
- helz0ne
- ilovespamusubi
- kokotas
- makhan
- manga123
- pi_te_ku
- promfret
- reddevilshn
- ryColaa
- silvermask
- thefolenangel
- yoniekai
- Dako
- ElZacko
- Heihouka
- Indoakatsuki
- Nep Ece
- Puffing Tom
- Robin-Chan
- Whitebeard
- cez
- cez&kokotas
- gomugomu
- gto0o
- hlucablight
- psycho
- trog
- yeste
- Less...']
- 5 ['Latest Release(s)'], ['c.882 by MangaStream (2d ago)c.882 by Jaimini's Box (2d ago)c.881 by Jaimini's Box (17d ago)Search for all releases of this series'
- ]
- 6 ['Status in Country of Origin'], ['86 Volumes (Ongoing)']
- 7 ['Completely Scanlated?'], ['No']
- 8 ['Anime Start/End Chapter'], ['Starts at Vol 1, Chap 1 (Ongoing)']
- 9 ['User Reviews'], ['One Piece by UnknownOne Piece by _AsDOne Piece by crypticOne Piece by shounen_loverOne Piece by KaiohOne Piece by emperor26One Piece by
- Zoro']
- 10 ['Forum'], ['350 topics, 5544 postsClick here to view the forum']
- 11 ['User Rating'], ['Average: 9 / 10.0 (4183 votes)Bayesian Average: 8.98 / 10.0
- 10
- 60% (2514 votes)
- 9+
- 17% (719 votes)
- 8+
- 10% (412 votes)
- 7+
- 4% (188 votes)
- 6+
- 2% (92 votes)
- 5+
- 1% (57 votes)
- 4+
- 1% (30 votes)
- 3+
- 0% (13 votes)
- 2+
- 0% (13 votes)
- 1+
- 3% (145 votes)']
- 12 ['Last Updated'], ['October 21st 2017, 3:31pm PST']
- 13 ['Image'], ['[Image Disabled for this Series]']
- 14 ['Genre'], ['Action Adventure Comedy Drama Fantasy Shounen Search for series of same genre(s)']
- 15 ['Categories'], ['Log in to vote! Show all (some hidden)
- Adapted to Anime
- Ambitious Goal/s
- Banding Together
- Character Growth
- Pirate/s
- Sailing
- Special Ability/ies
- Teamwork
- Treasure Hunt
- World Travel']
- 16 ['Category Recommendations'], ['Aronui MujeokhamdaeNarutoSilent MobiusHunter HunterDungeon ni Deai o Motomeru no wa Machigatte Iru Darou ka Gaiden - Sword
- Oratoria']
- 17 ['Recommendations'], ['Hagane no RenkinjutsushiFairy TailBerserkNarutoBleach
- More...
- Hagane no RenkinjutsushiFairy TailBerserkNarutoBleachGintamaShin Angyo OnshiThe BreakerRurouni KenshinPsyrenNoblesseClaymoreAngel DensetsuHunter HunterGTORave
- SuperiorHoshi no SamidareBasaraVampire JuujikaiBeelzebubVinland SagaGantzMonsterAresVagabondSkip Beat!Black CatDeath NoteKateikyoushi Hitman Reborn!Gokusen1/2
- PrincePandora HeartsSlam DunkDragon BallHellsingSoul EaterKekkaishiKanata KaraEyeshield 21KuroshitsujiTokyo Crazy Paradise20 Seiki ShounenSora wa Akai Kawa n
- o HotoriIdD.Gray-manMx0Yotsubato!Nurarihyon no MagoShi ga Futari o Wakatsu MadeAkumetsuYu Yu HakushoRecca no HonooLiar GameShaman KingHistorieDeadman Wonderla
- ndWitch HunterKiseijuu666 SatanFruits BasketSamurai Deeper KyoGunslinger GirlMagi - Labyrinth of MagicBattle RoyaleMirai NikkiImmortal RegisTower of GodBeckNa
- bari no OuÜbel BlattMarsDouble ArtsMahou Sensei Negima!MushishiBlack LagoonHajime no IppoYanki-kun to Megane-chanAliveAlive (TACHIBANA Seven)AkiraGet BackersB
- asiliskSaverTenshi KinryoukuNodame CantabileHikaru no GoHolylandESChrno CrusadeMajin Tantei Nougami NeuroPlutoZippy ZiggyTsubasa - Reservoir Chronicle07-Ghost
- Shounen Tenshi XEdenYakitate!! JapanAir GearCat StreetTrigun Maximum
- Less...']
- 18 ['Author(s)'], ['ODA Eiichiro']
- 19 ['Artist(s)'], ['ODA Eiichiro']
- 20 ['Year'], ['1997']
- 21 ['Original Publisher'], ['Shueisha']
- 22 ['Serialized In (magazine)'], ['Shuukan Shounen Jump (Shueisha)']
- 23 ['Licensed (in English)'], ['Yes']
- 24 ['English Publisher'], ['Viz (83 Volumes - Ongoing)']
- 25 ['Activity Stats (vs. other series)'], ['Weekly Pos #28 (+28)Monthly Pos #54 (-4)3 Month Pos #39 (+13)6 Month Pos #54 (+14)']
- 26 ['List Stats'], ['On 13039 reading listsOn 737 wish listsOn 370 unfinished listsOn 694 custom lists']
- One Piece by Author/Artist: ODA Eiichiro | Year: 1997
- Genres: Action Adventure Comedy Drama Fantasy Shounen Search for series of same genre(s) | Latest release: Latest Release(s).
- URL: https://www.mangaupdates.com/series.html?id=33
- [nodemon] clean exit - waiting for changes before restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement