carpentries-incubator / twitter-with-twarc

Introduction to Harvesting Twitter Data with Twarc
https://carpentries-incubator.github.io/twitter-with-twarc/
Other
4 stars 4 forks source link

quotes around emojis #33

Open kristi-sara opened 2 years ago

kristi-sara commented 2 years ago

!pip install emoji import emoji

make sure emoji works by running: print(emoji.emojize('Python is:thumbs_up:'))

!python 'utils/emojis.py' 'output_data/ecodatasci_flat.jsonl' > 'output_data/eds_emojis.txt'

Putting single quotes around the code will spit out the emojis. This also takes some time to run to collect emojis. I was able to get cats and gas emojis from the stuff we ran this morning

ameliameyer commented 2 years ago

Does twarc2 not have its own version of the emojis utility?