diff options
Diffstat (limited to 'searx/engines/github.py')
-rw-r--r-- | searx/engines/github.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/searx/engines/github.py b/searx/engines/github.py index a68aed141..cc1fc470c 100644 --- a/searx/engines/github.py +++ b/searx/engines/github.py @@ -1,12 +1,14 @@ -## Github (It) -# -# @website https://github.com/ -# @provide-api yes (https://developer.github.com/v3/) -# -# @using-api yes -# @results JSON -# @stable yes (using api) -# @parse url, title, content +""" + Github (It) + + @website https://github.com/ + @provide-api yes (https://developer.github.com/v3/) + + @using-api yes + @results JSON + @stable yes (using api) + @parse url, title, content +""" from urllib import urlencode from json import loads @@ -37,7 +39,7 @@ def response(resp): search_res = loads(resp.text) # check if items are recieved - if not 'items' in search_res: + if 'items' not in search_res: return [] # parse results |