Skip to main content

Topic: AMG scraper for tagging (like foo_discogs) (Read 18124 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • stellis11
  • [*]
AMG scraper for tagging (like foo_discogs)
I have Googled an AMG-based tagger, but I have yet to find one.

I think it would be great because most albums on AMG have "Mood" and "Style" data that could be stored and used to recommend music in (or out of) your collection. It would be better than Discogs because it is maintained by a company rather than a community and has a larger database.

I have heard rumblings that Tag & Rename and MP3Tag have scripts/plugins/something that allow them to scrape AMG. Has anyone heard of anything like that? Is anyone interested in developing an AMG plugin?

If the creator of foo_discogs shares his (or her) source code, it might not take a long time to develop one.

  • incunabula
  • [*][*]
AMG scraper for tagging (like foo_discogs)
Reply #1
Both MP3Tag and The Godfather can parse the AMG site using 3rd-party scripts which will allow you to tag your files with the fields you are interested in.  Since AMG offers a premium paid service called Lasso that you can license to obtain this data via API, it is not something that they allow other applications to hook into for free.  This is why HTML-parsing scripts must be used to scrape the data from the release pages.  A foobar plug-in to do the same would be great  but given the fact that there are working alternatives in other freeware apps i doubt there is enough interest to drive demand.  Never mind the fact that parsing HTML is usually a hassle that devs don't want to be bothered with.

AMG scraper for tagging (like foo_discogs)
Reply #2
Due to my poor english i do not really understand what "Lasso" is. There is yet no tool that uses it for fetching data from AMG? (I think i would even pay money for that service under certain circumstances)
german support forum: www.foobar-users.de / user: qwert73

  • Cosmo
  • [*][*][*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #3
dbpoweramp offers AMG service

  • incunabula
  • [*][*]
AMG scraper for tagging (like foo_discogs)
Reply #4
I don't think that Lasso is available for personal licensing.  I think it is more intended for use by companies to license for metadata lookup services for application software.  I believe Windows Media Player 11 and dbPoweramp (registered version) use the Lasso service from AMG to look up tags.  There is more information on the product page:  AMG Lasso .

  • Cosmo
  • [*][*][*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #5
Yeah I think dBpoweramp just licenses access to the All Music Guide database...

http://www.allmediaguide.com/music.html
  • Last Edit: 27 November, 2007, 08:57:46 PM by Cosmo

  • LANjackal
  • [*][*][*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #6
WMP11 uses it for tagging and metadata lookup. I think AMG also has their own free tool somewhere, but I suddenly can't find it.
  • Last Edit: 28 November, 2007, 12:13:40 AM by LANjackal
EAC>1)fb2k>LAME3.99 -V 0 --vbr-new>WMP12 2)MAC-Extra High

AMG scraper for tagging (like foo_discogs)
Reply #7
I use mp3tag to do this. The problem is that they were told to get rid of it. So unless you know someone who can send you it you won't be able to get it.
I love π

AMG scraper for tagging (like foo_discogs)
Reply #8
I did some digging and worked out that Windows Media Player uses a simple, HTTP-based protocol for retrieving CD metadata. What's more the protocol is documented in a patent application: Metadata retrieval protocols and namespace identifiers

It's easy enough to write a tagger using this service.

Here's a rough and ready script to retrieve the metadata from windowsmedia.com in XML format:

Code: [Select]
#!/bin/sh
ARG="`cdparanoia -Q 2>&1|
awk \
  'NF==8 {b[n++]=$4+150; end=$4+$2+150;}
   END {printf("http://windowsmedia.com/redir/getmdrcd/?locale=409&CD=%X", n);
        for(i=0;i<n;++i)
          printf("+%X", b[i]);
        printf("+%X\n", end);}'`"
wget -q -O - $ARG


n.b. you can even preview the metadata record XML in your web browser (I'm using Firefox), e.g. This random CD.

By the way, while WMP uses AMG data, the metadata also comes from a number of other sources, including user-entered data. I suspect it's different to AMG's Lasso service.

The XML record doesn't include the complete AMG metadata associated with the disc. Interestingly, the AMGClassical-sourced records don't contain complete performer information. But there is an AMG id included, so you could pick up the missing fields by screenscraping if you wanted to.

  • mrinferno
  • [*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #9
i would be interested in some kind of script that could be manually run on the browser window for an album to snag the the Styles (and possible Mood, Theme), then maybe copy to the clipboard in the proper format for Mp3Tag.  Applying the \\ and removing the spaces surrounding /'s.

Styles
    * Heavy Metal
    * Alternative Pop/ Rock
    * Alternative Metal
    * Rap-Metal

Converting to:
Heavy Metal\\Alternative Pop/Rock\\Alternative Metal\\Rap-Metal

Not much of a coder myself, so I've just been doing this approach manually using copy/paste + notepad ;-)

i do recall looking for the Script for Mp3Tag, but Florian was forced to remove it from his site due to Ceast & Desist letters from AMG.  Violation of TOS.

  • Donatzsky
  • [*]
AMG scraper for tagging (like foo_discogs)
Reply #10
I made a simple php script that will convert the info as copied from AMG. It's nothing fancy, but it sure beats having to do it by hand.
http://anaerob.dk/amg

  • mrinferno
  • [*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #11
I made a simple php script that will convert the info as copied from AMG. It's nothing fancy, but it sure beats having to do it by hand.
http://anaerob.dk/amg


awesome, thanks.  definitely a time saver.
finally got a minute to try it out.

any chance the converter code could remove trailing spaces after /.

examples:
Beastie Boys
Code: [Select]
    * Golden Age
    * Alternative Pop/ Rock
    * Alternative Rap
    * Old-School Rap
    * Hardcore Punk

Sarah McLachlan
Code: [Select]
    * Alternative Pop/ Rock
    * Adult Alternative Pop/ Rock
    * Alternative Singer/ Songwriter
    * Pop/Rock
    * Contemporary Singer/ Songwriter


thanks for the efforts.

AMG scraper for tagging (like foo_discogs)
Reply #12
The Godfather works great and pretty much use it as my default tagger with an AMG script. Too bad it hasn't been developed for a few years. I also use Mp3tag for those quick edits. I can really kick myself in the rear for not backing up my AMG scripts from mp3tag and of course cannot find in anywhere. 

  • Donatzsky
  • [*]
AMG scraper for tagging (like foo_discogs)
Reply #13
any chance the converter code could remove trailing spaces after /.

Good idea - I'll have a look at it.

Edit: Done.
Also just saw that you actually asked for this in your first post
  • Last Edit: 07 January, 2008, 04:43:19 AM by Donatzsky

  • mrinferno
  • [*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #14

any chance the converter code could remove trailing spaces after /.

Good idea - I'll have a look at it.

Edit: Done.
Also just saw that you actually asked for this in your first post


sweet, thanks again!

  • tberman333
  • [*][*][*]
AMG scraper for tagging (like foo_discogs)
Reply #15
I use foo_discogs now and while it is great, I would love if there was a similar plugin for AMG!  I find AMG to be a much more complete list of albums and is much more accurate (in terms of genres, styles, moods, etc.).

If there are any developers out there that want to create such a plugin I for one would be very grateful!  I can't code, but I have a large music collection and would be more than happy to help with any testing of an AMG tagger!

Thanks!
GO WHALE!!!

My Website

  • Benji99
  • [*][*]
AMG scraper for tagging (like foo_discogs)
Reply #16
Sorry to bring an old topic back to life.
I also use AMG to tag all my tracks. It's especially useful for Classical music, there is no other Metadata service remotely close.

I've been using super-complicated scripts to scrape the AMG site via The Godfather, but lately, it's become really unreliable. It seems that I have a lot of trouble loading complete webpages. I suspect that the AMG server is somehow aware that I'm scraping and serving me garbage pages.

I would love for a solution that would give me full access to the AMG metadata information through some kind of easy-to use API. I would pay for that. In fact I already pay for dbpoweramp, but it's extremely limited in its ability to fetch info from AMG (only works when ripping from CDs, very little information is retrieved and very little control on the tagging process)

Better yet, I would pay for a plugin for Foobar that grabs that magically grabs the meta-data on the fly so that I don't need to worry about tagging

On a side note, I'd like to see if MP3Tag is more reliable at scraping, if anyone still has the AMG script, I'd love it if you would PM. I  really don't feel like coding from scratch and having the original script would give me a much better idea of how scripting in MP3Tag works.

  • tjordan90
  • [*]
AMG scraper for tagging (like foo_discogs)
Reply #17
Is there any interest in anyone designing a plugin that would scrape AMG?  Mediamonkey is capable of parsing AMG (allmusic) field data through a script, but using mediamonkey makes my head hurt from frustration.  The sample mediamonkey script is available at http://www.mediamonkey.com/wiki/index.php/...G_Search_script.  I don't think its possible to create custom tags in mediamonkey, which would be the simplest route of adding STYLE, MOOD, and THEME tags.  Mediamonkey parses the data from the HTML but puts them in tags that foobar sees as part of the COMMENT tag.

  • MartDann
  • [*]
AMG scraper for tagging (like foo_discogs)
Reply #18
Well, its not for AMG, but for Genre &  Mood (and some Others) Tagging i use the Last-Fm Plus Plugin for Picard:
http://tiptoes.hobby-site.com/mbz/lastfm/lastfmplus.html

  • Donatzsky
  • [*]
AMG scraper for tagging (like foo_discogs)
Reply #19
I just updated the tool at http://www.anaerob.dk/amg

It now properly handles recent versions of Firefox.
It's no longer necessary to specify the input format.
It's become optional if you want to strip spaces around /'s.
And it's now possible to use ' / ' as a delimiter, without it being mangled.