[flickr] add search extractor

This commit is contained in:
Mike Fährmann
2017-06-13 08:01:32 +02:00
parent 5f55c854b9
commit 05ed95e5b0
3 changed files with 34 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class OAuthSession():
message = self.concat("GET", url, query).encode()
key = self.concat(self.consumer_secret, self.token_secret).encode()
signature = hmac.new(key, message, hashlib.sha1).digest()
return base64.b64encode(signature)
return base64.b64encode(signature).decode()
@staticmethod
def concat(*args):