Flickr Noapi unit test

This commit is contained in:
Cqoicebordel 2015-02-01 14:31:04 +01:00
parent 8cf2ee5721
commit c6535dd65e
3 changed files with 444 additions and 1 deletions

View file

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