@@ -22,7 +22,7 @@ paging = True
2222
2323# search-url
2424base_url = 'https://www.deviantart.com/'
25−search_url = base_url+'search?offset={offset}&{query}'
25+search_url = base_url+'browse/all/?offset={offset}&{query}'
2626
2727
2828# do search-request
@@ -56,6 +56,12 @@ def response(resp):
5656 thumbnail_src = link.xpath('.//img')[0].attrib.get('src')
5757 img_src = regex.sub('/', thumbnail_src)
5858
59+ # http to https, remove domain sharding
60+ thumbnail_src = re.sub(r"https?://(th|fc)\d+.", "https://th01.", thumbnail_src)
61+ thumbnail_src = re.sub(r"http://", "https://", thumbnail_src)
62+
63+ url = re.sub(r"http://(.*)\.deviantart\.com/", "https://\\1.deviantart.com/", url)
64+
5965 # append result
6066 results.append({'url': url,
6167 'title': title,