Jon Skeet has the following reputation tracker which is built by C#.
I am interested in building a similar app by Python such that at least the following modules are used
- beautiful soup
- defaultdict
We apparently need
- to parse the reputation from the site ‘https://stackoverflow.com/users/#user-id#‘ by Bautiful soup
- to store the data by defaultdict
How can you build a similar reputation system as Jon’s one by Python?
The screenscraping is easy, if I understand the SO HTML format correctly, e.g., to get my rep (as I’m user 95810):
I’m not sure what you want to do with
defaultdicthere, though — what further processing do you desire to perform on this int, that would somehow require storing it in a defaultdict?