Broken One Posted September 1, 2009 Report Share Posted September 1, 2009 Hi there, is there any kind of hidden API or whatever to more easily get a and search a specific song by artist and title? I would like to use a XmlHTTPRequest to get the songfacts and incorparate them into last.fm via greasemonkey. Greets, Broken One Link to comment Share on other sites More sharing options...
Farin Posted September 1, 2009 Report Share Posted September 1, 2009 I'm not sure if that's possible, but I would like it very much if it is Link to comment Share on other sites More sharing options...
MindCrime Posted September 1, 2009 Report Share Posted September 1, 2009 That's what I was thinking, it sounds very complicated to do though. But it would be nice. Link to comment Share on other sites More sharing options...
Carl Posted September 2, 2009 Report Share Posted September 2, 2009 I speak some geek, but I'm a little lost on this one. Can you show me something that uses this so I can get a visual? Link to comment Share on other sites More sharing options...
Farin Posted September 2, 2009 Report Share Posted September 2, 2009 Greasemonkey is a Firefox Addon that lets you customize small bits of how a website is displayed, or add certain functions to it and as I understand it, he wants to write a script so that Songfacts are displayed (or a link to them) on the track pages on last.fm Link to comment Share on other sites More sharing options...
Broken One Posted September 2, 2009 Author Report Share Posted September 2, 2009 Exactly, what I'm trying to do is to incorparate those songfacts dynamically into the HTML of last.fm. If none are given I will place a link so you can add them or comment on the song. At the moment I can get a detail page via 2 seperate XmlHttpRequests. Worse I have to use regular expressions to parse the HTML I get. This would be easier if there would be some kind of API that takes an artist and a track and returns some XML document. So my question is if there is any better way or hidden way to query the songfacts database. Greets, Broken One Link to comment Share on other sites More sharing options...
Broken One Posted September 2, 2009 Author Report Share Posted September 2, 2009 (edited) It could look something like this: Edited September 2, 2009 by Guest Link to comment Share on other sites More sharing options...
The Seeker Posted September 2, 2009 Report Share Posted September 2, 2009 Wouldn't you need last.fm's permission for this? Link to comment Share on other sites More sharing options...
Broken One Posted September 2, 2009 Author Report Share Posted September 2, 2009 No offense, but you should inform yourself of the capabilities of Greasemonkey it what it exactly is The whole insertion happens only in your browser via Java Script and XmlHttpRequests. last.fm will never notice and you won't have to ask them to let some code run in your browser^^. Greets, Broken One P.S.: I'm nearly finsihed but I bet it will be rather slow with the whole requests and regexps. Link to comment Share on other sites More sharing options...
The Seeker Posted September 2, 2009 Report Share Posted September 2, 2009 I somehow completely missed the whole Greasemonkey bit (not an easy feat considering how few replies there are so far) Link to comment Share on other sites More sharing options...
Farin Posted September 3, 2009 Report Share Posted September 3, 2009 It could look something like this: hey, that looks great already and it would be a cool way to promote SF on last.fm - I know there are many greasemonkey users there Link to comment Share on other sites More sharing options...
Broken One Posted September 3, 2009 Author Report Share Posted September 3, 2009 I have a working beta, now. It is still looking somewhat ugly and I like to redesign it a little bit and add some links to songfacts. I'm also missing some feedback when there are now songfacts available. What I dislike most is the way I have to search, it seems to work but it is not very good. As soon as I finished the design and got a link back to songfacts in it I will publish the script on userscripts.org. I would glady try to incorporate suggestions or add things if you have any suggestions? Greets, Broken One Link to comment Share on other sites More sharing options...
Carl Posted September 3, 2009 Report Share Posted September 3, 2009 Hey Broken. Thanks for working on this, and it's starting to come together for me. It sounds like you need an API to search the database and display the content more efficiently. Is that correct? Link to comment Share on other sites More sharing options...
Broken One Posted September 4, 2009 Author Report Share Posted September 4, 2009 Hoi, no problem I'm glad to do it and I hope I will create something that some people might find useful. Yeah if there was an API that I could use with a simple XmlHttpRequest and that would return the unformatted facts as XML oder clean HTML it would be really great. Greets, Broken One Link to comment Share on other sites More sharing options...
Carl Posted September 9, 2009 Report Share Posted September 9, 2009 Broken- I tossed this over to our developer and he's having a look. Should have an answer soon... Carl Link to comment Share on other sites More sharing options...
Farin Posted October 1, 2009 Report Share Posted October 1, 2009 any news for this? Link to comment Share on other sites More sharing options...
Carl Posted October 6, 2009 Report Share Posted October 6, 2009 Yeah, I talked with some of the technical folk, and while this is possible, it creates the potential for problems, as other sites could easily steal the content if we were to set up some kind of API. It is a real interesting application, but I'm just not comfortable with what it could open up. Link to comment Share on other sites More sharing options...
Farin Posted October 6, 2009 Report Share Posted October 6, 2009 bummer... but understandable, I guess Link to comment Share on other sites More sharing options...
Broken One Posted October 30, 2009 Author Report Share Posted October 30, 2009 One could steal your content with any webcrawler or programmed application. It would be easier with an API, but what about protecting the API so that only people with a login can access or use it? Sorry that I didn't let you hear anything. I just started studying and had to move to a new city. As soon as all is back to normal I will try to pretty up my version and get it out! Greets, Broken One Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now