Update steam.py
This commit is contained in:
parent
810802ec65
commit
e025103d39
1 changed files with 2 additions and 2 deletions
|
@ -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'})
|
||||||
|
|
Reference in a new issue