Skip to content

Instantly share code, notes, and snippets.

View flaviosilveira's full-sized avatar
:octocat:

Flávio Augusto da Silveira flaviosilveira

:octocat:
View GitHub Profile
@flaviosilveira
flaviosilveira / crawler.sh
Last active January 20, 2019 01:30 — forked from chenyanzhe/crawler.sh
Gather Geo-Tagged Tweets using Twitter Streaming API | Just change the line 31 to catch tweets from where you want
#/bin/bash
#Function to Encode
# Thanks to https://gist.github.com/cdown/1163649/8a35c36fdd24b373788a7057ed483a5bcd8cd43e
encode() {
local _length="${#1}"
for (( _offset = 0 ; _offset < _length ; _offset++ )); do
_print_offset="${1:_offset:1}"
case "${_print_offset}" in
[a-zA-Z0-9.~_-]) printf "${_print_offset}" ;;