Merge pull request #89 from blha303/patch-5

Rename .steamsearch to .steam
This commit is contained in:
Luke Rogers 2013-08-01 03:19:21 -07:00
commit ec09da2d93

View file

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