Instapy: cannot use characters like "眉" in hashtags

Created on 30 Oct 2017  路  7Comments  路  Source: timgrossmann/InstaPy

Is this a desired functionality? Or i could not figure it out which Unicode representation i have to use in my hashtag string..

help wanted wontfix

Most helpful comment

Just add these lines to quickstart.py and instapy.py:

# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

All 7 comments

@akcasoy please give some more information about where what is not working...

Is it the commenting?
Have you tried u'Test das ist eine 眉bung'

Try to give some hashtag with 眉 in "Like by Tags". Then you click on run button and see the error.. But the problem may also be sth. related with the "InstaPy GUI".. I cannot run the app without the GUI right now.

This is the error when i run your app without GUI:

File "quickstart.py", line 11 (this is the line with session.like_by_tags(['sehensw眉rdigkeit'], amount=500, media='Photo'))
SyntaxError: Non-ASCII character '\xc3' in file quickstart.py on line 11, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

facing the same prob above

  • with/without GUI
  • SyntaxError: Non-ASCII character ...
  • tried with u'Comment 馃崟'

Just add these lines to quickstart.py and instapy.py:

# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

@hojjabr does not help me http://prntscr.com/m454b9 also try this
session.like_by_tags(["屑邪薪懈泻褞褉斜芯谐邪褌褘褉褋泻懈泄"], amount=100)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CamiloB picture CamiloB  路  316Comments

awesome205 picture awesome205  路  71Comments

Tachenz picture Tachenz  路  60Comments

EvraCloak picture EvraCloak  路  60Comments

GreatTimeBand picture GreatTimeBand  路  114Comments