Skip to content

Instantly share code, notes, and snippets.

View josircg's full-sized avatar
🏠
Working from home

Josir Cardoso Gomes josircg

🏠
Working from home
View GitHub Profile
@josircg
josircg / mastodon_br_stat.py
Last active March 11, 2024 18:51
Estatística de Servidores Mastodon Brasileiros
#!/usr/bin/env python
import requests
server_list = ('ursal.zone', 'bolha.us', 'colorid.es',
'mastodon.com.br', 'masto.donte.com.br', 'conversafiada.net', 'cwb.social', 'burnthis.town',
'piupiupiu.com.br', 'vira-lata.org', 'clube.social', 'bantu.social', 'cuscuz.in',
'komuna.digital', 'fim.social', 'social.br-linux.org', 'ayom.media', 'bertha.social',
'vox.mojo', 'bolha.one', 'oxente.club', 'nuvem.lgbt', 'mastodon.yurialbuquerque.dev',
'social.modscleo4.dev.br', 'botequim.social', 'mstdn.facb69.com.br',
'social.coletivos.org',
@josircg
josircg / gist:b4bab8de92908a50b9359e4b51759405
Last active April 26, 2019 15:18
Example of Tweepy search
import tweepy
# grava um arquivo json para cada item
def save_result(data):
filename = 'data/%s.json' % data['id']
arquivo = open(filename, 'w')
json.dump(data, arquivo)
arquivo.close()
termo_de_busca = 'wikileaks'