ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

repost not working #315

Closed morier closed 7 years ago

morier commented 7 years ago

i see this error every time i run it

Traceback (most recent call last): File "C:\Users\user\Desktop\instabot-master\examples\repost_best_photos_from_users.py", line 93, in repost_best_photos(bot, users, args.amount) File "C:\Users\user\Desktop\instabot-master\examples\repost_best_photos_from_users.py", line 27, in repost_best_photos repost_photo(my_bot, media) File "C:\Users\user\Desktop\instabot-master\examples\repost_best_photos_from_users.py", line 65, in repost_photo photo_path = my_bot.download_photo(new_media_id, description=True) File "E:\program file\lib\site-packages\instabot\bot\bot.py", line 335, in download_photo return download_photo(self, media_id, path, filename, description) File "E:\program file\lib\site-packages\instabot\bot\bot_photo.py", line 24, in download_photo f.write(caption) File "E:\program file\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-1: character maps to

sudoguy commented 7 years ago

Try to use Python3

morier commented 7 years ago

i use python3

ohld commented 7 years ago

Please use the Issue template if you want to receive help.