INNER CODE UNIT · Python

show_active_tabs

balta2ar/brotab · brotab/main.py:167

def show_active_tabs(args):
    brotab_logger.info('Showing active tabs: %s', args)
    apis = create_clients(args.target_hosts)
    for api in apis:
        tabs = api.get_active_tabs(args)
        for tab in tabs:
            print('%s\t%s' % (tab, api))


def screenshot(args):
    brotab_logger.info('Getting screenshot: %s', args)
    apis = create_clients(args.target_hosts)
    for api in apis:
        result = api.get_screenshot(args)
        # print(result, api)
        result = loads(result)
        result['api'] = api._prefix[:1]
        result = dumps(result)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…