In the Flickr API docs, you need to find the MD5 sum of a string to generate the [api_sig] value.
[api_sig]
How does one go about generating an MD5 sum from a str
You can use b character in front of a string literal:
import hashlib print(hashlib.md5(b"Hello MD5").hexdigest()) print(hashlib.md5("Hello MD5".encode('utf-8')).hexdigest())
Out:
e5dadf6524624f79c3127e247f04b548 e5dadf6524624f79c3127e247f04b548