Use tor when grabbing arbitrary json

master
Bob Mottram 2019-07-12 11:58:08 +01:00
parent 048bc279fb
commit 0e474769d4
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ if args.actor:
sys.exit() sys.exit()
if args.json: if args.json:
session = createSession(domain,port,useTor) session = createSession(domain,port,True)
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
testJson = getJson(session,args.json,asHeader,None) testJson = getJson(session,args.json,asHeader,None)
pprint(testJson) pprint(testJson)