IPB

Welcome Guest ( Log In | Register )

4 Pages V  « < 2 3 4  
Reply to this topicStart new topic
Python Grabber scripts
Decalicatan_Deca...
post Oct 26 2010, 11:10
Post #76





Group: Members
Posts: 79
Joined: 14-January 10
From: France
Member No.: 77118



I have uploaded one of the 2E7AH amg scripts (from november 2009) in pastebin: http://pastebin.com/uzwvDgCq

It grabbed (before amg search method redesign) %genre% / %style% / %theme% / %mood% from amg from %album% tag

If someone can update the script with the new search method it would be great.

If 2E7AH is not ok with publication of its script on pastebin, please let me know, I will delete it (and also will delete this post with the link)

thanks in advance,
Decalicatan_Decalicatan


--------------------
Decalicatan Decalicatan
Go to the top of the page
+Quote Post
Beta4Me
post Oct 26 2010, 11:15
Post #77





Group: Members
Posts: 8
Joined: 6-October 10
Member No.: 84380



QUOTE (Decalicatan_Decalicatan @ Oct 26 2010, 21:10) *
I have uploaded one of the 2E7AH amg scripts (from november 2009) in pastebin: http://pastebin.com/uzwvDgCq

It grabbed (before amg search method redesign) %genre% / %style% / %theme% / %mood% from amg from %album% tag

If someone can update the script with the new search method it would be great.

If 2E7AH is not ok with publication of its script on pastebin, please let me know, I will delete it (and also will delete this post with the link)

thanks in advance,
Decalicatan_Decalicatan

Thanks.
I don't know Python, but I'll try and dissect that script so I have an idea of what is going on.
Hopefully, I can get mine to work well. Currently it grabs almost every AMG tag based on the input of the AMG Album ID...
Go to the top of the page
+Quote Post
tberman333
post Oct 26 2010, 21:16
Post #78





Group: Members
Posts: 162
Joined: 5-November 04
From: W Hartford, CT - USA
Member No.: 17991



QUOTE (Beta4Me @ Oct 25 2010, 22:59) *
QUOTE (mrinferno @ Oct 26 2010, 12:53) *
AMG redesigned their site and search methods mid-October.

that's why everything stopped working.

i haven't messed with the python scripts yet, but the mp3tag scripts were completely broken by the HTML redesign.

i rewrote the mp3tag tag scripts to match the new html, it probably wouldn't be that difficult to re-do the python scripts.

I understand that. My PHP one works perfectly with the new design.
What I'm trying to do, is understand how the original Python script worked: "Did you have to input the AMG ID or did it scan files and search and find everything for you etc.? Also, what tags did it pull from allmusic?"


The Python script scanned the files and did a search for you. I think it searched by album name first, and then artist (but I am not sure). I think the only data it pulled from allmusic was the genre, styles, mood and theme. They were all put into one tag and then a masstagger script could be run to separate them out into separate tags on each file. I have the Python script and the masstagger script if you want them (I can email them to you).


--------------------
GO WHALE!!!

[url="http://www.toddberman.com"]My Website[/url]
Go to the top of the page
+Quote Post
Beta4Me
post Oct 26 2010, 23:25
Post #79





Group: Members
Posts: 8
Joined: 6-October 10
Member No.: 84380



QUOTE (tberman333 @ Oct 27 2010, 07:16) *
QUOTE (Beta4Me @ Oct 25 2010, 22:59) *
QUOTE (mrinferno @ Oct 26 2010, 12:53) *
AMG redesigned their site and search methods mid-October.

that's why everything stopped working.

i haven't messed with the python scripts yet, but the mp3tag scripts were completely broken by the HTML redesign.

i rewrote the mp3tag tag scripts to match the new html, it probably wouldn't be that difficult to re-do the python scripts.

I understand that. My PHP one works perfectly with the new design.
What I'm trying to do, is understand how the original Python script worked: "Did you have to input the AMG ID or did it scan files and search and find everything for you etc.? Also, what tags did it pull from allmusic?"


The Python script scanned the files and did a search for you. I think it searched by album name first, and then artist (but I am not sure). I think the only data it pulled from allmusic was the genre, styles, mood and theme. They were all put into one tag and then a masstagger script could be run to separate them out into separate tags on each file. I have the Python script and the masstagger script if you want them (I can email them to you).

Thanks - PM sent.
What I'm really trying to understand is the whole search bit. My script works if you know the Album ID, but I need to write it so that it can scan the file to get the Artist & Album (or they can be input) and use them to search, get the AMG ID and then go from there.
Go to the top of the page
+Quote Post
tberman333
post Oct 27 2010, 01:37
Post #80





Group: Members
Posts: 162
Joined: 5-November 04
From: W Hartford, CT - USA
Member No.: 17991



QUOTE (Beta4Me @ Oct 26 2010, 18:25) *
Thanks - PM sent.
What I'm really trying to understand is the whole search bit. My script works if you know the Album ID, but I need to write it so that it can scan the file to get the Artist & Album (or they can be input) and use them to search, get the AMG ID and then go from there.


I don't really know Python too well, but if you look at the script I sent you, you should see where in there it pulls the album name and plugs it into a URL to search for the album. Then, if an exact match is not found, it searches the page of results for a matching artist (from the %album artist% tag).

Hope that helps.


--------------------
GO WHALE!!!

[url="http://www.toddberman.com"]My Website[/url]
Go to the top of the page
+Quote Post
Schuft
post Feb 13 2011, 09:41
Post #81





Group: Members
Posts: 30
Joined: 4-December 08
Member No.: 63835



QUOTE (Decalicatan_Decalicatan @ Oct 26 2010, 05:10) *
I have uploaded one of the 2E7AH amg scripts (from november 2009) in pastebin: http://pastebin.com/uzwvDgCq
thanks in advance,
Decalicatan_Decalicatan

I've downloaded the script and saved it under amg.py. I always get this error:

CODE
foo_grabber_python: Traceback (most recent call last):
File "C:\Program Files (x86)\foobar2000\user-components\foo_lyricsgrabber2\pygrabber\scripts\amg.py", line 3, in <module>
import os, sys, subprocess, urllib, re, pickle, win32com.client
ImportError: No module named win32com.client

Is this script still compatible with Lyrics Grabber 2 0.5.5.2 beta ?

This post has been edited by Schuft: Feb 13 2011, 09:41
Go to the top of the page
+Quote Post
klonuo
post Feb 13 2011, 16:53
Post #82





Group: Members
Posts: 258
Joined: 29-April 10
Member No.: 80274



QUOTE (Schuft @ Feb 13 2011, 10:41) *
Is this script still compatible with Lyrics Grabber 2 0.5.5.2 beta ?

I don't know about that, but it seems you are missing PyWin32 Extensions (which doesn't come with offical Python distributions by default) and allmusic.com was redesigned is the meantime (judging from dates in this thread) so I would say you try something else biggrin.gif
Go to the top of the page
+Quote Post
Schuft
post Feb 16 2011, 18:37
Post #83





Group: Members
Posts: 30
Joined: 4-December 08
Member No.: 63835



Ok - you're right - phyton installation was missing.

It's a shame that these scripts are no further developed...
Go to the top of the page
+Quote Post
MDMA
post Feb 8 2012, 16:21
Post #84





Group: Members
Posts: 75
Joined: 23-May 10
Member No.: 80861



Would it be possible to use this component to fetch and display list of all previous releases from an artist, possibly from discogs?
Go to the top of the page
+Quote Post
Fractal_Mortalit...
post Feb 3 2013, 20:30
Post #85





Group: Members
Posts: 374
Joined: 20-June 05
Member No.: 22863



Does anyone know where i could find updated scripts for allmusic? The ones i originally had from this thread no longer seem to work.m


--------------------
http://www.last.fm/user/magnumforce2006
Go to the top of the page
+Quote Post

4 Pages V  « < 2 3 4
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th July 2014 - 23:35