Browse Source

Translated servers software strings

master
spla 1 year ago
parent
commit
6905a56689
  1. 44
      fediverse.py

44
fediverse.py

@ -155,7 +155,7 @@ def getserver(server, x):
if nodeinfo.status_code == 200 and check_pleroma == True:
print("Servidor Pleroma: ")
print("Pleroma server: ")
soft = "pleroma"
pl_users = nodeinfo.json()['usage']['users']['total']
total_pl_users = total_pl_users + pl_users
@ -167,7 +167,7 @@ def getserver(server, x):
if type(res.json()) != int:
if res.json().get('stats') != None:
print("Servidor Mastodon: ")
print("Mastodon server: ")
soft = "mastodon"
mast_users = res.json()['stats']['user_count']
else:
@ -342,7 +342,7 @@ def getserver(server, x):
if nodeinfo.ok == True and check_peertube == True:
print("Servidor Peertube")
print("Peertube server")
soft = "peertube"
peertube_users = nodeinfo.json()['usage']['users']['total']
total_peertube_users = total_peertube_users + peertube_users
@ -352,7 +352,7 @@ def getserver(server, x):
if nodeinfo.ok == True and check_diaspora == True:
print("Servidor Diaspora")
print("Diaspora server")
soft = "diaspora"
diaspora_users = nodeinfo.json()['usage']['users']['total']
total_diaspora_users = total_diaspora_users + diaspora_users
@ -362,7 +362,7 @@ def getserver(server, x):
elif nodeinfo.ok == True and check_raven == True:
print("Servidor Ravenvale")
print("Ravenvale server")
soft = "ravenvale"
ravenvale_users = nodeinfo.json()['usage']['users']['total']
total_ravenvale_users = total_ravenvale_users + ravenvale_users
@ -372,7 +372,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_zap == True:
print("Servidor Zap")
print("Zap server")
soft = "zap"
zap_users = others_nodeinfo.json()['usage']['users']['total']
total_zap_users = total_zap_users + zap_users
@ -382,7 +382,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_plume == True:
print("Servidor Plume")
print("Plume server")
soft = "plume"
plume_users = others_nodeinfo.json()['usage']['users']['total']
total_plume_users = total_plume_users + plume_users
@ -392,7 +392,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_hubzilla == True:
print("Servidor Hubzilla")
print("Hubzilla server")
soft = "hubzilla"
hubzilla_users = others_nodeinfo.json()['usage']['users']['total']
total_hubzilla_users = total_hubzilla_users + hubzilla_users
@ -402,7 +402,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_misskey == True:
print("Servidor Misskey")
print("Misskey server")
soft = "misskey"
misskey_users = others_nodeinfo.json()['usage']['users']['total']
if misskey_users == 0:
@ -414,7 +414,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_prismo == True:
print("Servidor Prismo")
print("Prismo server")
soft = "prismo"
prismo_users = others_nodeinfo.json()['usage']['users']['total']
total_prismo_users = total_prismo_users + prismo_users
@ -424,7 +424,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_osada == True:
print("Servidor Osada")
print("Osada server")
soft = "osada"
osada_users = others_nodeinfo.json()['usage']['users']['total']
total_osada_users = total_osada_users + osada_users
@ -434,7 +434,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_groundpolis == True:
print("Servidor Groundpolis")
print("Groundpolis server")
soft = "groundpolis"
gpolis_users = others_nodeinfo.json()['usage']['users']['total']
total_gpolis_users = total_gpolis_users + gpolis_users
@ -444,7 +444,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_ganggo == True:
print("Servidor Ganggo")
print("Ganggo server")
soft = "ganggo"
ggg_users = others_nodeinfo.json()['usage']['users']['total']
total_ggg_users = total_ggg_users + ggg_users
@ -454,7 +454,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_squs == True:
print("Servidor Squs")
print("Squs server")
soft = "squs"
squs_users = others_nodeinfo.json()['usage']['users']['total']
total_squs_users = total_squs_users + squs_users
@ -464,7 +464,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_friendica == True:
print("Servidor Friendica")
print("Friendica server")
soft = "friendica"
if others_nodeinfo.json()['usage'] != []:
friendica_users = others_nodeinfo.json()['usage']['users']['total']
@ -478,7 +478,7 @@ def getserver(server, x):
elif others_nodeinfo.ok == True and check_dolphin == True:
print("Servidor Dolphin")
print("Dolphin server")
soft = "dolphin"
if others_nodeinfo.json()['usage'] != []:
dolphin_users = others_nodeinfo.json()['usage']['users']['total']
@ -492,7 +492,7 @@ def getserver(server, x):
elif gs_nodeinfo.ok == True and check_gnusocial == True:
print("Servidor GNU Social")
print("GNU Social server")
soft = "gnusocial"
gs_users = gs_nodeinfo.json()['usage']['users']['total']
if gs_users == 0:
@ -504,7 +504,7 @@ def getserver(server, x):
elif statusnet.ok == True and check_friendica == True: #statusnet.json()['site']['friendica']['FRIENDICA_PLATFORM'] == "Friendica":
print("Servidor Friendica")
print("Friendica server")
soft = "friendica"
friendica_users = 0
total_friendica_users = total_friendica_users + friendica_users
@ -514,7 +514,7 @@ def getserver(server, x):
elif px_nodeinfo.ok == True and check_pixelfed == True:
print("Servidor Pixelfed")
print("Pixelfed server")
soft = "pixelfed"
pixelfed_users = px_nodeinfo.json()['usage']['users']['total']
total_pixelfed_users = total_pixelfed_users + pixelfed_users
@ -524,7 +524,7 @@ def getserver(server, x):
elif px_nodeinfo.ok == True and check_gnusocial2 == True:
print("Servidor GNU Social 2.x")
print("GNU Social 2.x server")
soft = "gnusocialv2"
gs_users = px_nodeinfo.json()['usage']['users']['total']
if gs_users == 0:
@ -536,7 +536,7 @@ def getserver(server, x):
elif wf_nodeinfo.ok == True and check_writefreely == True:
print("Servidor WriteFreely")
print("WriteFreely server")
soft = "writefreely"
writefreely_users = wf_nodeinfo.json()['usage']['users']['total']
total_writefreely_users = total_writefreely_users + writefreely_users
@ -630,7 +630,7 @@ uc_access_token = get_parameter("uc_access_token", secrets_filepath)
# Load configuration from config file
config_filepath = "config.txt"
mastodon_hostname = get_parameter("mastodon_hostname", config_filepath) # E.g., mastodon.social
mastodon_hostname = get_parameter("mastodon_hostname", config_filepath)
# Load database config from db_config file
db_config_filepath = "config/db_config.txt"

Loading…
Cancel
Save