import urllib.request as ur
import json


jsonURL = input('Enter location: ')
if len(jsonURL) < 1:
    quit()

parms = dict()
parms['address'] = jsonURL

print('Retrieving', jsonURL)

data = ur.urlopen(jsonURL).read().decode('utf-8')
print('Retrieved', len(data), 'characters')

info = json.loads(data)

print('Retrieved', len(info), "characters")
numCount = 0
total = 0
   
for item in info['comments']:
    numCount = numCount + 1
    total = total + int(item['count'])
print('Count:', numCount)
print('Sum:', total)

b82c27e26491fa4065dec27a8845714942336207
<mask token>

<mask token>
if len(jsonURL) < 1:
    quit()
<mask token>
print('Retrieving', jsonURL)
<mask token>
print('Retrieved', len(data), 'characters')
<mask token>
print('Retrieved', len(info), 'characters')
<mask token>
for item in info['comments']:
    numCount = numCount + 1
    total = total + int(item['count'])
print('Count:', numCount)
print('Sum:', total)

<mask token>
jsonURL = input('Enter location: ')
if len(jsonURL) < 1:
    quit()
parms = dict()
parms['address'] = jsonURL
print('Retrieving', jsonURL)
data = ur.urlopen(jsonURL).read().decode('utf-8')
print('Retrieved', len(data), 'characters')
info = json.loads(data)
print('Retrieved', len(info), 'characters')
numCount = 0
total = 0
for item in info['comments']:
    numCount = numCount + 1
    total = total + int(item['count'])
print('Count:', numCount)
print('Sum:', total)

import urllib.request as ur
import json
jsonURL = input('Enter location: ')
if len(jsonURL) < 1:
    quit()
parms = dict()
parms['address'] = jsonURL
print('Retrieving', jsonURL)
data = ur.urlopen(jsonURL).read().decode('utf-8')
print('Retrieved', len(data), 'characters')
info = json.loads(data)
print('Retrieved', len(info), 'characters')
numCount = 0
total = 0
for item in info['comments']:
    numCount = numCount + 1
    total = total + int(item['count'])
print('Count:', numCount)
print('Sum:', total)

import urllib.request as ur
import json


jsonURL = input('Enter location: ')
if len(jsonURL) < 1:
    quit()

parms = dict()
parms['address'] = jsonURL

print('Retrieving', jsonURL)

data = ur.urlopen(jsonURL).read().decode('utf-8')
print('Retrieved', len(data), 'characters')

info = json.loads(data)

print('Retrieved', len(info), "characters")
numCount = 0
total = 0
   
for item in info['comments']:
    numCount = numCount + 1
    total = total + int(item['count'])
print('Count:', numCount)
print('Sum:', total)
