Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from mawic/master
Browse files Browse the repository at this point in the history
Fix bug with emojis hashtags
  • Loading branch information
Mottl authored Nov 27, 2019
2 parents cc92717 + 5f7bb0b commit 7c9feba
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions GetOldTweets3/manager/TweetManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,16 @@ def textify(html, emoji):
html = match.group(4)

attr = TweetManager.parse_attributes(link)
if "u-hidden" in attr["class"]:
try:
if "u-hidden" in attr["class"]:
pass
elif "data-expanded-url" in attr \
and "twitter-timeline-link" in attr["class"]:
text += attr['data-expanded-url']
else:
text += link
except:
pass
elif "data-expanded-url" in attr \
and "twitter-timeline-link" in attr["class"]:
text += attr['data-expanded-url']
else:
text += link

match = are.match(html)
text = text + html
Expand Down

0 comments on commit 7c9feba

Please sign in to comment.