Create a scraper on morph.io that, for each NSW fire area, collects:
- the name of the area
- fire danger level and total fire bans for today and tomorrow
- the list of councils effected
line_count=$(cat emails.txt | wc -l) | |
file_count=0 | |
while [ $file_count -lt $line_count ] | |
do | |
echo "creating file emails_$file_count.csv" | |
tail -n+$file_count emails.txt | head -n2000 >> emails_$file_count.csv | |
file_count=$[$file_count+2000] | |
done |
reboot
there
# Put this script in the root directory of a Slack data export | |
# Run `bundle install` and then `bundle exec ruby slack_reactions_from_export.rb` | |
# This will create a file called `reactions.txt` with rows like this: | |
# | |
# 2017-04-09 9:56 in #general: 😀 | |
# 2017-04-10 9:45 in #tech-discussions: ⚽️ | |
# 2017-04-19 15:45 in #general: 💖 | |
# 2017-04-20 11:59 in #general: :hugging_face: | |
# 2017-04-20 22:35 in #general: 🤕 | |
# 2017-04-30 21:38 in #most17: ❤️❤️ |