Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48ff80d

Browse files
filip-mullerFilip Muller
and
Filip Muller
authored
Resolve emoji dependency issue (#6638)
Co-authored-by: Filip Muller <filip.muller@firma.seznam.cz>
1 parent574eb76 commit48ff80d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎instapy/util.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
importemoji
2525
importregex
2626
frombs4importBeautifulSoup
27-
fromemoji.unicode_codesimportUNICODE_EMOJI
27+
fromemoji.unicode_codesimportEMOJI_DATA
2828

2929
# import exceptions
3030
fromselenium.common.exceptionsimport (
@@ -2117,7 +2117,7 @@ def deform_emojis(text):
21172117
emojis_in_text= []
21182118

21192119
forwordindata:
2120-
ifany(charinUNICODE_EMOJIforcharinword):
2120+
ifany(charinEMOJI_DATAforcharinword):
21212121
word_emoji=emoji.demojize(word).replace(":","").replace("_"," ")
21222122
ifword_emojinotinemojis_in_text:# do not add an emoji if
21232123
# already exists in text

‎requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ chardet>=3.0.4,<4
44
clarifai>=2.4.1
55
configparser>=3.5.0,<4
66
EasyProcess>=0.2.3
7-
emoji>=0.5.1
7+
emoji>=1.6.0
88
future>=0.17.1
99
grpcio>=1.16.1
1010
idna>=2.7,<3

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp