@provide-api yes (https://secure.flickr.com/services/api/flickr.photos.search.html) @using-api no @results HTML @stable no @parse url, title, thumbnail, img_src """ from json import loads from time import time import re from searx.engines import logger from searx.url_utils import urlencode from searx.utils import ecma_unescape, html_to_text logger = logger.getChild('flickr-noapi') categories = ['images'] url = 'https://www.flickr.com/' search_url = url + 'search?{query}&page={page}' time_range_url = '&min_upload_date={start}&max_upload_date={end}' photo_url = 'https://www.flickr.com/photos/{userid}/{photoid}' modelexport_re = re.compile(r"^\s*modelExport:\s*({.*}),$", re.M) image_sizes = ('o', 'k', 'h', 'b', 'c', 'z', 'n', 'm', 't', 'q', 's') paging = True time_range_support = True time_range_dict = { 'day': 60 * 60 * 24, 'week': 60 * 60 * 24 * 7,
@provide-api yes (https://secure.flickr.com/services/api/flickr.photos.search.html) @using-api no @results HTML @stable no @parse url, title, thumbnail, img_src """ from json import loads from time import time import re from searx.engines import logger from searx.url_utils import urlencode logger = logger.getChild('flickr-noapi') categories = ['images'] url = 'https://www.flickr.com/' search_url = url + 'search?{query}&page={page}' time_range_url = '&min_upload_date={start}&max_upload_date={end}' photo_url = 'https://www.flickr.com/photos/{userid}/{photoid}' regex = re.compile(r"\"search-photos-lite-models\",\"photos\":(.*}),\"totalItems\":", re.DOTALL) image_sizes = ('o', 'k', 'h', 'b', 'c', 'z', 'n', 'm', 't', 'q', 's') paging = True time_range_support = True time_range_dict = {'day': 60 * 60 * 24, 'week': 60 * 60 * 24 * 7, 'month': 60 * 60 * 24 * 7 * 4,