import urllib import simplejson import settings content Drumer Aspirat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import urllib
import simplejson
import settings
content = """Drumer's Aspiration !<br />He is one the best sports fan in the world who certainly deserving of a better fate.John Adams, drumer a perennial Indians baseball fan, figures he ...<br /><br /><p>For my birthday, my wife is taking me out ot Chicago for a long weekend and a cubs play next season. I'm looking at available seats and I'm finding seats available in both the 200 level behind home trencher/ in the infield, and then I'm also finding seats available in the outfield bleachers. I've always heard that the bleachers are a great time but if I'm going to get to go once I want to construct it good. Also, being a Philly native I understand the importance of knowing what I'm getting into as far as crowds go... What's the difference between bleachers vs infield seats and is one sick than the other?<br /></p><br /><br />If you're going for the experience, take the bleacher seats. They're more vocal & rowdy than the regular seats & that's where people usually sit to inhabit watch. If you're going to actually watch the game, get the regular seats. Granted, you're going to hear a lot of gobbledegook talking anyway, but at least you'll be able to see the game closer. The bleachers ARE a great time, but the beer vendors don't go through the aisles, you have to go get your own beer. Whichever put you decide to sit, you will have a good time. Just remember, not all of us Cub fans are drunk, obnoxious, loudmouths. Talk to tribe around you and you'll see what I mean. bleachers greatest champions<table><tr><td></td><td></td><tr><tr><td><a href="http://www.amazon.com/Champion-Elite-Flat-Bench/dp/B001M0HPNW%3FSubscriptionId%3D08G40E5EQF56V47WZSG2%26tag%3Dmycategor-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001M0HPNW"><img src="http://ecx.images-amazon.com/images/I/21t9kvVP3BL._SL160_.jpg" /></a></td><td><a href="http://www.amazon.com/Champion-Elite-Flat-Bench/dp/B001M0HPNW%3FSubscriptionId%3D08G40E5EQF56V47WZSG2%26tag%3Dmycategor-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB001M0HPNW">Champion Elite Flat Bench</a><br /><br /> Champion Elite Flat Bench Champion <br /> </td><tr></table>"""
url = 'http://api.semantichacker.com/%s/category?' % settings.SEMHACK_API_KEY
args = {'format': 'json', 'filter': 'html',
'content': content.encode('utf-8'),
}
req = urllib.urlopen(url, urllib.urlencode(args))
data = simplejson.loads(req.read())
print data['categorizer']['categorizerResponse']['categories']