Skip to content

Commit 3f76b6e

Browse files
authored
urllib.parse.quote
1 parent ffc3239 commit 3f76b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InstagramAPI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def getLikedMedia(self,maxid=''):
472472
return self.SendRequest('feed/liked/?max_id='+str(maxid))
473473

474474
def generateSignature(self, data):
475-
return 'ig_sig_key_version=' + self.SIG_KEY_VERSION + '&signed_body=' + hmac.new(self.IG_SIG_KEY.encode('utf-8'), data.encode('utf-8'), hashlib.sha256).hexdigest() + '.' + urllib.quote(data)
475+
return 'ig_sig_key_version=' + self.SIG_KEY_VERSION + '&signed_body=' + hmac.new(self.IG_SIG_KEY.encode('utf-8'), data.encode('utf-8'), hashlib.sha256).hexdigest() + '.' + urllib.parse.quote(data)
476476

477477
def generateDeviceId(self, seed):
478478
volatile_seed = "12345"

0 commit comments

Comments
 (0)