mirror of
https://github.com/alecmuffett/real-world-onion-sites.git
synced 2025-12-17 17:04:00 -05:00
auto-update on Tue Sep 28 07:25:48 UTC 2021
This commit is contained in:
parent
c7b2d03975
commit
2bb18661ab
4 changed files with 95 additions and 111 deletions
|
|
@ -4,12 +4,15 @@ import csv
|
|||
import pprint
|
||||
import json
|
||||
import requests
|
||||
import html
|
||||
|
||||
output_csv = 'securedrop-api.csv'
|
||||
sd_url = 'https://securedrop.org/api/v1/directory/'
|
||||
fieldnames = "legacy flaky category site_name onion_name onion_addr onion_url proof_url comment".split()
|
||||
|
||||
def xx(thing, key): return thing.get(key, '')
|
||||
def xx(thing, key):
|
||||
val = thing.get(key, None) or '' # catches instance where key=existing and val=None
|
||||
return html.escape(val)
|
||||
|
||||
def push(stack, entry):
|
||||
method = 'http' # this needs some discussion with Securedrop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue