Browse Source

[fix] flickr engine

Alexandre Flament 10 years ago
parent
commit
6cd9a045f8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/engines/flickr_noapi.py

+ 2
- 2
searx/engines/flickr_noapi.py View File

20
 
20
 
21
 categories = ['images']
21
 categories = ['images']
22
 
22
 
23
-url = 'https://secure.flickr.com/'
24
-search_url = url + 'search/?{query}&page={page}'
23
+url = 'https://www.flickr.com/'
24
+search_url = url + 'search?{query}&page={page}'
25
 photo_url = 'https://www.flickr.com/photos/{userid}/{photoid}'
25
 photo_url = 'https://www.flickr.com/photos/{userid}/{photoid}'
26
 regex = re.compile(r"\"search-photos-models\",\"photos\":(.*}),\"totalItems\":", re.DOTALL)
26
 regex = re.compile(r"\"search-photos-models\",\"photos\":(.*}),\"totalItems\":", re.DOTALL)
27
 image_sizes = ('o', 'k', 'h', 'b', 'c', 'z', 'n', 'm', 't', 'q', 's')
27
 image_sizes = ('o', 'k', 'h', 'b', 'c', 'z', 'n', 'm', 't', 'q', 's')