2014-10-04, 15:46
IMVDb Music Video Scraper
Current version: 0.6
Scrapes: Artist, Title, Year, Director/s, Thumbnail, Studio, Genre/s, Tag/s, Album (as Artist).
v0.6 (2015-01-16)
- Changed album name to be scraped from artist name instead of track title. This allows for all music videos by an artist to be viewed at once.
v0.5 (2015-01-13)
- Changed source of info back to the API (found a way to get more information out of it).
- Removed support for Genres and Tags (these are not available in the API).
- Added Album data (which is just the song title again).
- Known issues: Possible issue when scraping thumbs that have an accented character in the URL.
v0.4 (2015-01-11)
- Changed source of info to the main site, as there is limited information on the API.
- Added support for Studio (scraped from Production Company).
- Also added Genre and Tag support.
v0.3 (2014-10-09)
- Added ability to scrape thumbnail.
v0.2 (2014-10-09)
- Added ability to scrape director/s.
v0.1 (2014-10-04)
- Beta release: Currently scrapes artist, title, and release year.
I recently stumbled across The Internet Music Video Database, or IMVDb, when looking for some music videos to watch. It seems like a great source of information for music videos in XBMC, so I decided to start putting together a scraper for it. I've only dabbled in bits and pieces of coding before so any help or advice is appreciated.
(2014-10-04, 15:46)tphoenix Wrote: Currently this scraper only retrieves artist, track and year information. I wasn't sure what else to include, or what else can be displayed by XBMC. Some videos have a director listed, or other production companies, and every video seems to have thumbs. Should the scraper also be pulling this information?
I have been testing this with all of my video files in one folder, and your music video files do not have to be in the 'artist - track' naming format. I have been able to scrape videos using their YouTube names (e.g. "David Guetta - Play Hard ft. Ne-Yo, Akon (Official Video)" or "Ariana Grande feat. Big Sean - Right There"). The only video I'm having trouble with at the moment (I haven't tried a huge range though) is "Jessie J, Ariana Grande, Nicki Minaj - Bang Bang". Maybe the commas are effecting it? (this now works) The only change the scraper makes to file names at the moment is to replace - and ! with spaces. The - is treated as a minus (excluding search terms) and the ! ends the search string (or something like that. I'm not entirely sure) (the scraper replaces commas, dashes, exclamation marks, and spaces, with %20)
For the most part the scraper is working. If anyone wants to try it out and give me some feedback I would really appreciate it. You can get v0.1 here v0.3 v0.4 here.
Special thanks to pko66 for his how-to on writing media scrapers, budswell for his MMA scraper (I used it as an example/for comparison), UsagiYojimbo for his java tool ScraperEdit, and the folks over at IMVDb.