# Script for ripping genre, year & record label from beatport.com

**URL:** https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227
**Category:** Web Sources Discussion
**Created:** [December 3, 2010, 1:16am UTC](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227 "2010-12-03T01:16:56Z")
**Posts on this page:** 1
**Showing post:** 55

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [September 16, 2011, 1:09pm UTC](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227/55 "2011-09-16T13:09:24Z")

</div>

> [@stevehero](#):
>
> I was wondering why there was a difference in the two. So anything before " **"**" has to escaped like " **/"**"?

use **"** not **/"**  
you have to use **"** whenever you refer to a **"** in the beatport xml file.  
you have to use **"** when it is part of the script language syntax.

> [@stevehero](#):
>
> **NOTE: I'm in the process of finishing of the script along with those below and will post them later in a new thread for you all to use. All of which will output (see attached pic).**  
> Search by release.  
> Search by ID.  
> Search by track (give specific track values)
> 
> This is where I need a little info, I cant find whether there is an API for single tracks. The album one is [http://api.beatport.com/catalog/releases/d...mat=xml&id=](http://api.beatport.com/catalog/releases/detail?v=1.0&format=xml&id=) and you add the release id to the end to find the release.
> 
> However, the track url is e.g. [http://www.beatport.com/track/banger-origi...lub-mix/1686845](http://www.beatport.com/track/banger-original-club-mix/1686845). I was wondering if there was an api search to search this track e.g. [http://www.beatport.com/track/detail?v=1.0...#0066cc]1686845](http://www.beatport.com/track/detail?v=1.0&format=xml&id=1686845)[/color][/u]

Have you read my discussion with Irvin Cee in this topic.  
I misunderstood him at first and wrote a search by release ID script for him:  
[Script for ripping genre, year & record label from beatport.com](https://community.mp3tag.de/t/11227/29)

But what he really wanted to do was a search and script for single tracks, not release pages. And he says he had success with it.  
Here is the API page for the single track:  
[http://api.beatport.com/catalog/tracks?v=1...&id=1686845](http://api.beatport.com/catalog/tracks?v=1.0&format=xml&id=1686845)

He presented his first script here:  
[Script for ripping genre, year & record label from beatport.com](https://community.mp3tag.de/t/11227/36)  
and I think this is his final version:  
[support for Beatport API single tracks based on Beatport Track ID in filename](https://community.mp3tag.de/t/12439/1)

Be aware that the single track search must be done for every track seperatly.

Good to see that you now renamed the tag-field for the release-id to BEATPORT\_RELEASE\_ID. It was really a pain for me to see you writing this ID to DISCOGS\_RELEASE\_ID. There the information would have been absolutly useless. Anybody who wanted to have a look at the release page would have been directed to a completly discogs page.

---

_[View the full topic](https://community.mp3tag.de/t/script-for-ripping-genre-year-record-label-from-beatport-com/11227)._
