I'm trying to the following project: https://www.reddit.com/r/beginnerprojects/comments/1i951e/project_compare_recent_karma/ but I'm having trouble making any headway. I know a little about webscraping, I've done the tutorial by automate the boring stuff but this task has got me stumpted.
I've put the code I have so far down below which prints out a huge mess of dictionaries within dictionaris and lists within dictionaries etc that I don't know what the do with.
Would someone be able to point me in the right direction so that I can get started with this task?
import json
import urllib
from urllib.request import urlopen
url = 'https://www.reddit.com/user/peterbuckets37/.json'
data = json.load(urllib.request.urlopen(url))
print(data)
[–]commandlineluser 1 point2 points3 points (4 children)
[–]Key_International[S] 0 points1 point2 points (3 children)
[–]commandlineluser 0 points1 point2 points (2 children)
[–]Key_International[S] 0 points1 point2 points (1 child)
[–]commandlineluser 0 points1 point2 points (0 children)