def update_servers(): global servers servers = ss_free.main() global encoded decoded = list() for i in servers: for j in i['data']: if j['uri'][2] is 'r': decoded.append(j['uri']) decoded = '\n'.join(decoded) encoded = base64.urlsafe_b64encode(bytes(decoded, 'utf-8'))
def update_servers(): try: global servers servers = ss_free.main() global encoded decoded = list() for i in servers: for j in i['data']: if j['uri'][2] is 'r': decoded.append(j['uri']) decoded = '\n'.join(decoded) encoded = base64.urlsafe_b64encode(bytes(decoded, 'utf-8')) except Exception as e: logging.exception(e, stack_info=True)
#!/usr/bin/env python # -*- utf-8 -*- import base64 import random import logging import time import threading import os from app import app from app.ascii import birthday_2017 from app import ss_free from app import ss from flask import render_template, send_from_directory, abort servers = ss_free.main() curtime = time.ctime() decoded = list() for i in servers: for j in i['data']: if j['uri'][2] is 'r': decoded.append(j['uri']) decoded = '\n'.join(decoded) encoded = base64.urlsafe_b64encode(bytes(decoded, 'utf-8')) def update_servers(): try: global servers servers = ss_free.main()
#!/usr/bin/env python # -*- utf-8 -*- import base64 import random import time import threading import os from app import app from app.ascii import birthday_2017 from app import ss_free from app import ss from flask import render_template, send_from_directory, abort servers = ss_free.main() curtime = time.ctime() decoded = list() for i in servers: for j in i['data']: if j['uri'][2] is 'r': decoded.append(j['uri']) decoded = '\n'.join(decoded) encoded = base64.urlsafe_b64encode(bytes(decoded, 'utf-8')) def update_servers(): global servers servers = ss_free.main() global encoded decoded = list()