little refactoring

This commit is contained in:
Thomas Pointhuber 2014-09-02 17:13:44 +02:00
parent 16d1526818
commit 3d61d9b930
4 changed files with 4 additions and 1 deletions

View file

@ -24,6 +24,7 @@ paging = True
base_url = 'https://www.bing.com/'
search_string = 'images/search?{query}&count=10&first={offset}'
# do search-request
def request(query, params):
offset = (params['pageno'] - 1) * 10 + 1