diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-23 23:55:37 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-23 23:55:37 +0200 |
commit | 74b6be3991dc62577aca295de839e51e6d0807d6 (patch) | |
tree | 5bf5df160e765dc7dc6897e640fd23a761df1d2e /searx/engines/github.py | |
parent | 39d229e1104dc10c7c7f00380c02d46118e3d895 (diff) | |
download | searxng-74b6be3991dc62577aca295de839e51e6d0807d6.tar.gz searxng-74b6be3991dc62577aca295de839e51e6d0807d6.zip |
[enh] engine cfg compatibilty
Diffstat (limited to 'searx/engines/github.py')
-rw-r--r-- | searx/engines/github.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/github.py b/searx/engines/github.py index 85540056c..b4baea6e8 100644 --- a/searx/engines/github.py +++ b/searx/engines/github.py @@ -4,11 +4,11 @@ from cgi import escape categories = ['it'] -search_url = 'https://api.github.com/search/repositories?sort=stars&order=desc&' +search_url = 'https://api.github.com/search/repositories?sort=stars&order=desc&{query}' def request(query, params): global search_url - params['url'] = search_url + urlencode({'q': query}) + params['url'] = search_url.format(query=urlencode({'q': query})) params['headers']['Accept'] = 'application/vnd.github.preview.text-match+json' return params |