Update steam.py

This commit is contained in:
Steven Smith 2013-08-01 18:17:41 +08:00
parent 810802ec65
commit e025103d39

View file

@ -133,8 +133,8 @@ def steam_url(match):
@hook.command
def steamsearch(inp):
"""steamsearch [search] - Search for specified game/trailer/DLC"""
def steam(inp):
"""steam [search] - Search for specified game/trailer/DLC"""
page = http.get("http://store.steampowered.com/search/?term=" + inp)
soup = BeautifulSoup(page, 'lxml', from_encoding="utf-8")
result = soup.find('a', {'class': 'search_result_row'})