{"content":"\n \n \n <\/a>\n <\/div>\n \n \n Hexide<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 70 posts\n <\/a>\n <\/div>\n\n \n ed January 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Hexide<\/a>\n\n \n 2013-11-18T15:17:58+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n Off to a good start, just one thing I noticed:conn = urllib2.urlopen('http:\/\/bloodcat.com\/osu\/?mod=json')data = conn.read().split('},{')conn.close()items, s = [], ['{\"id\":', \t\t\t\t',\"artist\":\"',\t\t\t\t'\",\"source\":',\t\t\t\t'\",\"title\":\"',\t\t\t\t'\",\"date\":']for l in data:\titems.append([l[l.find(s[0])+len(s[0]):l.find(s[1])],\t\t\t\tl[l.find(s[1])+len(s[1]):l.find(s[2])]+' - '+\t\t\t\tl[l.find(s[3])+len(s[3]):l.find(s[4])]])<\/pre>Doing it like that maybe works, but might break with slightest layout change ( even when actual data behind it is same ).So you are better off just using standard JSON parsing functions<\/a>.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n \n \n Avail_old_1\n <\/span>\n \n \n \n \n <\/div>\n\n \n \n \n \n \n Avail_old_1<\/span>\n\n \n 2013-11-18T15:52:24+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n import simplejsonurl = \"http:\/\/bloodcat.com\/osu\/?mod=json\"json = simplejson.load(url)id = json[0]['id']artist = json[0]['artist']source = json[0]['source']title = json[0]['title']date = json[0]['date']<\/pre>Or something like that.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 30 posts\n <\/a>\n <\/div>\n\n \n ed March 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Topic Starter\n <\/span>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n 2013-11-18T17:21:01+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n To be honest, i only thought JSON was something for bloodcat.I've never herd of if before looking at the information page.There are still a lot of things with Python i still don't know about.Thank you Hexide and Avail for showing me this.I'll look into this a little more and will see about updating it.Edit: I have changed the code a little bit to use the json module.I will have this test for about an hour while i get lunch.If there are no errors by the time i get back, i'll update my code using the same link on my first post.Edit 2: It's been running well for an hour now and have just updated the file. Same link in the first post.ps. i love mediafire's edit file. Don't have to re files if it's a small change and keeps the same link.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 30 posts\n <\/a>\n <\/div>\n\n \n ed March 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Topic Starter\n <\/span>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n 2013-11-19T18:30:01+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n I have just finished the code working with Python 3.3 and added a couple extra things.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n <\/span>\n <\/span>\n <\/div>\n \n Piotrekol<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 1,002 posts\n <\/a>\n <\/div>\n\n \n ed March 2010<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Piotrekol<\/a>\n\n \n 2013-11-19T20:50:15+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n Good way to start!(I would release my er<\/a> months ago but it's based on some parts of osu site(but uses bloodcat to dl) so it's no-go for mass use)<\/span>suggestions:-Ask if want to only ranked beatmap sets or all (or only unranked?)<\/span>-ability to upto ~60(or more)last ranked maps(I think I could provide public api for this- not promising tough)<\/span><\/div>\n <\/div>\n <\/div>\n\n \n \n osuStats<\/a><\/strong>[web] Extended pp listing<\/a><\/strong>\u2002osu!StreamCompanion<\/a><\/strong><\/center><\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 30 posts\n <\/a>\n <\/div>\n\n \n ed March 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Topic Starter\n <\/span>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n 2013-11-19T22:54:20+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n Piotrekol wrote:<\/h4>-Ask if want to only ranked beatmap sets or all (or only unranked?)<\/span><\/blockquote>This wouldn't be too difficult to add.Having 2+ windows pop-up isn't something i like for small options like this.Definitely something to if \/ when i make a GUI for it.Piotrekol wrote:<\/h4>-ability to upto ~60(or more)last ranked maps(I think I could provide public api for this- not promising tough)<\/blockquote>I don't think checking the last 60 updated songs every time will do much. Maybe at just the start.20 is what json brings up by default, and that seems to work quite well.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n - Marco -<\/a>\n\n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 7,607 posts\n <\/a>\n <\/div>\n\n \n ed December 2011<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n - Marco -<\/a>\n\n \n 2014-04-03T20:45:56+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n 22:45:04 - ing: 60309 nano - Omoide Kakera Creator: 1065180 Smoothie(<class 'KeyError'>, KeyError('source',), <traceback object at 0x00000000065E1E08>)And it will continue beeping :c<\/div>\n <\/div>\n <\/div>\n\n \n \n make osu! more awesome!<\/a> | \u2665\ufe0f<\/span><\/span><\/a> | Need Help?<\/a> | Lazer > Stable<\/a><\/center><\/div><\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n Woddles<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 69 posts\n <\/a>\n <\/div>\n\n \n ed December 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Woddles<\/a>\n\n \n 2014-04-04T12:11:46+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n marcostudios wrote:<\/h4>22:45:04 - ing: 60309 nano - Omoide Kakera Creator: 1065180 Smoothie(<class 'KeyError'>, KeyError('source',), <traceback object at 0x00000000065E1E08>)And it will continue beeping :c<\/blockquote>Thread is about 5months old, would not surprise me if the program was broken by an update to the bloodcat website or something similar<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 30 posts\n <\/a>\n <\/div>\n\n \n ed March 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Topic Starter\n <\/span>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n 2014-04-27T04:54:24+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n marcostudios wrote:<\/h4>22:45:04 - ing: 60309 nano - Omoide Kakera Creator: 1065180 Smoothie(<class 'KeyError'>, KeyError('source',), <traceback object at 0x00000000065E1E08>)And it will continue beeping :c<\/blockquote>I'm sorry for not replying earlier.I've fixed the issue. Bloodcat no longer provides the source of the songs any more.I've been busy with my Java class in college and have had hardly any time for anything else.I'm thinking of making a Java version of this. Almost everyone has java so no need to install python or ing the appropriate version of the code depending on what version of python you're using.Also, GUI's in Java is much easier to understand than python, imo.I'm still not very good with them though.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n \n \n \n \n <\/span>\n <\/a>\n <\/div>\n \n \n \n 30 posts\n <\/a>\n <\/div>\n\n \n ed March 2012<\/strong>\n <\/div>\n <\/div>\n\n \n \n \n \n \n Topic Starter\n <\/span>\n <\/div>\n \n \n RavenMac<\/a>\n\n \n 2014-06-06T04:38:16+00:00<\/time>\n <\/a>\n <\/div>\n <\/div>\n\n <\/div>\n\n \n \n Just updated my program again. Bloodcat no longer stores the genre or status as an integer. Everything is strings.Was asked by neptune23 how to get it working and decided to check to see if it was still working. It wasn't.I can no longer use my own program every day. My ISP has put a data cap on my house. 300GB split 5 ways.One more reason why i hate Comcast. No matter how fast your internet is, the cap is the same.And I've checked other ISPs. It's all i have in the area...Edit.One more small edit. I don't know why this wan't in there in the first place.Added status code 8 for Qualified maps.<\/div>\n <\/div>\n <\/div>\n\n \n \n <\/div>\n <\/div>\n \n <\/div>\n <\/div>\n \n \n \n <\/a>\n <\/div>\n \n \n Aistify<\/a>\n\n \n \n \n 4s6k5w