[fix] pep8 compatibilty

This commit is contained in:
Adam Tauber 2016-01-18 12:47:31 +01:00
parent 6a158ca2d2
commit bd22e9a336
18 changed files with 30 additions and 29 deletions

View file

@ -38,7 +38,7 @@ content_xpath = './/div[@class="serp-item__text"]//text()'
def request(query, params):
lang = params['language'].split('_')[0]
host = base_url.format(tld=language_map.get(lang) or default_tld)
params['url'] = host + search_url.format(page=params['pageno']-1,
params['url'] = host + search_url.format(page=params['pageno'] - 1,
query=urlencode({'text': query}))
return params