Naruto & Boruto addon
#1
Hi guys, looking for a little bit of help, hoping I can find it here....
So I found a dead add-on for Narutospot that scrapes episodes from narutospot.com and lists the episodes in the respective categories e.g. naruto subbed, naruto dubbed, naruto shippuden subbed and so on.
https://github.com/KasimAhmic/xbmc-narutospot

Anyway, problem is narutospot.com is no longer a valid url, the correct url is http://www4.naruspot.tv

What I would like to do is update the code to change the website to the correct one, create new internal url's for boruto subbed and boruto dubbed and update the scraping code to also search for boruto episodes. Once it's going I want to upload the update back to github in order to share the naruto love Big Grin

Here's where I need help, my knowledge of python is not so great, I'm new to coding... I've read the video add-on wiki and the scraping wiki, and done some reading up on regax scraping but I'm just having trouble piecing it all together and understanding exactly what I need to do. The code in this add-on looks a bit different to how they do it in the wiki.

I was hoping that a) someone could update the code for me (would be awesome haha)
Or b) someone could walk me through how to do it so then I could learn a bit at the same time (would be even better!!)

I know it would be a lot easier to take the easier route and download a different add-on but I have a few problems, the only anime I watch is naruto, so I don't want to pay a subscription to crunchy roll just so I can watch ONE anime, funimation doesn't work in my area, and I don't want to pay a subscription for a vpn that costs the same amount as crunchyroll just so I have access to all the same anime as crunchy roll but illegal. I just want naruto/boruto!
Reply
#2
(2017-12-30, 13:29)Michaeljw Wrote: Hi guys, looking for a little bit of help, hoping I can find it here....
So I found a dead add-on for Narutospot that scrapes episodes from narutospot.com and lists the episodes in the respective categories e.g. naruto subbed, naruto dubbed, naruto shippuden subbed and so on.
https://github.com/KasimAhmic/xbmc-narutospot
I took a quick look at the python-file and no, that is not what that addon does. What it does is that it connects to a site the author of that add-on used to have (now defunct) and simply downloaded a file with every listing in it. The scraping was done elsewhere.

So, to fix that would basically entail to write a scraper from scratch. Sorry.
Reply
#3
Is that the json file you're talking about?
Would it be possible to build a basic scraper knowing all episodes have the same name with just a different number e.g.http://www4.naruspot.tv/watch/boruto-episode-39-subbed-online/
So I could write something like: http://www4.naruspot.tv/watch/boruto-episode-[0-9][0-9][0-9]-subbed-online/
Would that work?
Reply
#4
I don't want to sound stupid but isn't there any easy way to make an add-on for this website, I mean it's only 3 series (naruto, shippuden and boruto) and all the episodes are listed by number?
Reply
#5
(2017-12-30, 19:46)Michaeljw Wrote: Is that the json file you're talking about?
Would it be possible to build a basic scraper knowing all episodes have the same name with just a different number e.g.http://www4.naruspot.tv/watch/boruto-episode-39-subbed-online/
So I could write something like: http://www4.naruspot.tv/watch/boruto-episode-[0-9][0-9][0-9]-subbed-online/
Would that work?
 It is the json-file I'm talking about.

Let's take a deeper look at that episode-page:
The url given points you to a page with iframes for either DMV or BurstVideo.
The DMV requires you to learn their API and set passwords and keys (quite normal for video-sites really) [hard path]
The BurstVideo actually gives you useful filenames and should be doable (btw, that iframe also runs a cryptocurrency miner in the browser). [easy path]

So the basic workflow would be:
1) search www4.naruspot.tv for urls with "/watch/" in them.
2) for each item/url in the step above search the page for the BurstVideo iframe-url
3) search the BurstVideo page for the video-urls (it has two qualities)
4) Build a filelisting of urls as per normal for kodi-addons.

It would be a pretty basic video-addon (xbmc-narutospot that you linked to initially is a very small video-addon and would be easy to modify, it mainly is a matter of putting the data from point 3 above in the "for entry in ..."-loop (which is point 4)).

It is a video-addon you want to build btw, not a scraper (even if the techniques used overlap)
( The kodi-wiki for video-addons is at http://kodi.wiki/view/HOW-TO:Video_addon , but just modifying an existing addon tends to be faster)

That should be enough to get you started. Good luck.
(and just in case you are very new to the world of sources, "view source" in most browsers is useful when trying to learn the workings of a webpage, Ctrl+U to activate it in chrome)
Reply
#6
Thank you for your help, I am very new to the word of programming, I just started setting up a raspberry pi as a home media system and started learning about samba and ssh and now I've got the bug and want to learn more. I have a friend who is experienced with python and JavaScript who has offered to help with the add-on, and with the info you have given along with his help I'm sure we'll be able to get it done. Thanks again!
Reply
#7
(2018-01-03, 11:08)Michaeljw Wrote: Thank you for your help, I am very new to the word of programming, I just started setting up a raspberry pi as a home media system and started learning about samba and ssh and now I've got the bug and want to learn more. I have a friend who is experienced with python and JavaScript who has offered to help with the add-on, and with the info you have given along with his help I'm sure we'll be able to get it done. Thanks again!
Reply
#8
(2018-01-03, 11:08)Michaeljw Wrote: Thank you for your help, I am very new to the word of programming, I just started setting up a raspberry pi as a home media system and started learning about samba and ssh and now I've got the bug and want to learn more. I have a friend who is experienced with python and JavaScript who has offered to help with the add-on, and with the info you have given along with his help I'm sure we'll be able to get it done. Thanks again!

Sorry about that other post I don’t really know how this works. But I found this and was wondering if there was any update and if you had gotten it to work?
Reply
#9
Hey its abit late but did you ever finish this?
Reply
#10
(2022-06-11, 08:49)Zesidas Wrote: Hey its abit late but did you ever finish this?

It's very late... Michaeljw last visited this forum on 24-01-2018, 07:55.
Reply

Logout Mark Read Team Forum Stats Members Help
Naruto & Boruto addon0