Stats -> Results
This commit is contained in:
@@ -107,13 +107,13 @@ def gen_lookup(html_dir, doms_dict, names_dict, title):
|
|||||||
mylib.json_write(mylib.path_add(html_dir, 'doms.json'), doms_dict)
|
mylib.json_write(mylib.path_add(html_dir, 'doms.json'), doms_dict)
|
||||||
|
|
||||||
|
|
||||||
def gen_stats(c_apps, c_domains, title):
|
def gen_results(c_apps, c_domains, title):
|
||||||
[c_recordings, c_logs] = index_meta.get_total_counts()
|
[c_recordings, c_logs] = index_meta.get_total_counts()
|
||||||
print(' {} apps'.format(c_apps))
|
print(' {} apps'.format(c_apps))
|
||||||
print(' {} domains'.format(c_domains))
|
print(' {} domains'.format(c_domains))
|
||||||
print(' {} recordings'.format(c_recordings))
|
print(' {} recordings'.format(c_recordings))
|
||||||
print(' {} logs'.format(c_logs))
|
print(' {} logs'.format(c_logs))
|
||||||
HTML.write(mylib.path_out('stats'), '''
|
HTML.write(mylib.path_out('results'), '''
|
||||||
<h2>{}</h2>
|
<h2>{}</h2>
|
||||||
<p>The AppCheck database currently contains <b>{:,} apps</b> with a total of <b>{:,} unique domains</b>.</p>
|
<p>The AppCheck database currently contains <b>{:,} apps</b> with a total of <b>{:,} unique domains</b>.</p>
|
||||||
<p>Collected through <b>{:,} recordings</b> with <b>{:,} individual requests</b>.</p>
|
<p>Collected through <b>{:,} recordings</b> with <b>{:,} individual requests</b>.</p>
|
||||||
@@ -124,7 +124,7 @@ def gen_stats(c_apps, c_domains, title):
|
|||||||
<li>List of <a href="/index/domains/tracker/">Trackers</a></li>
|
<li>List of <a href="/index/domains/tracker/">Trackers</a></li>
|
||||||
</ul>'''.format(title, c_apps, c_domains, c_recordings, c_logs), title=title)
|
</ul>'''.format(title, c_apps, c_domains, c_recordings, c_logs), title=title)
|
||||||
mylib.symlink(index_meta.fname_app_rank(),
|
mylib.symlink(index_meta.fname_app_rank(),
|
||||||
mylib.path_out('stats', 'rank.json')) # after HTML.write
|
mylib.path_out('results', 'rank.json')) # after HTML.write
|
||||||
|
|
||||||
|
|
||||||
def process():
|
def process():
|
||||||
@@ -153,8 +153,8 @@ def process():
|
|||||||
json=index_domains.load(tracker=True), title='Tracker',
|
json=index_domains.load(tracker=True), title='Tracker',
|
||||||
symlink=index_domains.fname_tracker())
|
symlink=index_domains.fname_tracker())
|
||||||
# Stats
|
# Stats
|
||||||
print(' Stats')
|
print(' Results')
|
||||||
gen_stats(app_count, dom_count, title='Results')
|
gen_results(app_count, dom_count, title='Results')
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<ul id="main-nav">
|
<ul id="main-nav">
|
||||||
<li><a href="/index/apps/">Apps</a></li>
|
<li><a href="/index/apps/">Apps</a></li>
|
||||||
<li><a href="/stats/">Results</a></li>
|
<li><a href="/results/">Results</a></li>
|
||||||
<li><a href="/help/">Help needed</a></li>
|
<li><a href="/help/">Help needed</a></li>
|
||||||
<li><a class="no-ul" href="https://github.com/relikd/appcheck" target="_blank"><img src="/static/github.svg" alt="GitHub"></a></li>
|
<li><a class="no-ul" href="https://github.com/relikd/appcheck" target="_blank"><img src="/static/github.svg" alt="GitHub"></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user