ianalmore

This commit is contained in:
Luke Rogers 2013-12-02 23:10:08 +13:00
parent 1e22ca4995
commit be3df6718f
2 changed files with 5 additions and 12 deletions

View file

@ -52,6 +52,8 @@ def format_item(item):
tag_text, url)
## HOOK FUNCTIONS
@hook.regex(*NEWEGG_RE)
def newegg_url(match):
item_id = match.group(1)
@ -65,17 +67,8 @@ def newegg(inp):
# form the search request
request = {
"PageNumber": 1,
"BrandId": -1,
"NValue": "",
"StoreDepaId": -1,
"NodeId": -1,
"Keyword": inp,
"IsSubCategorySearch": False,
"SubCategoryId": -1,
"Sort": "FEATURED",
"CategoryId": -1,
"IsUPCCodeSearch": False
"Sort": "FEATURED"
}
# submit the search request