Created
March 3, 2021 07:53
-
-
Save WWelna/891a7aa9d0c7940739b0371fa3a18d4f to your computer and use it in GitHub Desktop.
stats.py for DDoSecrets Gab - Account posting stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import orjson as json | |
accounts_have_posted = 0 | |
accounts_have_posted_10 = 0 | |
no_data = 0 | |
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f: | |
for line in f: | |
j = json.loads(line) | |
try: | |
if j['__DBEXPORT__'] == 'accounts': | |
j2 = json.loads(j['data']) | |
if j2['statuses_count'] > 1: | |
accounts_have_posted += 1 | |
if j2['statuses_count'] >= 10: | |
accounts_have_posted_10 += 1 | |
except: | |
no_data += 1 | |
print(f"{accounts_have_posted} have posted, with {accounts_have_posted_10} accounts over/equal 10, No data on {no_data}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment