Closed mko510 closed 9 years ago
That's a nice ideia! I can see it when I have free time. :+1:
Cool! Also, Im trying to run the bot script on my Windows PC using Python 2.6 and I get this error:
C:\Python26\bot>python bot.py
Traceback (most recent call last):
File "bot.py", line 7, in
Hello! I think that the Instagram wrapper has a bug. I will see that soon :+1:
got
Traceback (most recent call last):
File "bot.py", line 130, in <module>
bot.run()
File "bot.py", line 103, in run
count=likes_for_this_tag)
File "/usr/local/lib/python2.7/site-packages/instagram/bind.py", line 196, in _call
return method.execute()
File "/usr/local/lib/python2.7/site-packages/instagram/bind.py", line 182, in execute
include_secret=self.include_secret)
File "/usr/local/lib/python2.7/site-packages/instagram/oauth2.py", line 224, in prepare_request
url = self._full_url_with_params(path, params, include_secret)
File "/usr/local/lib/python2.7/site-packages/instagram/oauth2.py", line 148, in _full_url_with_params
self._full_query_with_params(params) +
File "/usr/local/lib/python2.7/site-packages/instagram/oauth2.py", line 144, in _full_url
self._signed_request(path, {}, include_signed_request, include_secret))
File "/usr/local/lib/python2.7/site-packages/instagram/oauth2.py", line 172, in _signed_request
return "&sig=%s" % self._generate_sig(path, params, self.api.client_secret)
File "/usr/local/lib/python2.7/site-packages/instagram/oauth2.py", line 127, in _generate_sig
return hmac.new(secret, sig, sha256).hexdigest()
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hmac.py", line 136, in new
return HMAC(key, msg, digestmod)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hmac.py", line 75, in __init__
self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode
on both bot.py and day_bot.py - HMAC error ? same problem, near :
self.api.tag_recent_media(tag_name=tag,count=likes_for_this_tag)
python 2.7.10
Hello,
I would like to know in the future, if you will be adding a commenting function. Where you can add random comments from a text file.
Just curious to know. thank You.