-p option doesn't work for me

for page in xrange(pages):
  [...]
  sizes = [ match.replace("&nbsp;", " ") for match in re.findall("(?<=Size )[0-9.]+\&nbsp\;[KMGT]*[i ]*B",res)
  uploaded = [ match.replace("&nbsp;", " ") for match in re.findall("(?<=Uploaded ).+(?=\, Size)",res) ]

this means "sizes" and "uploaded" lists will contain only last page. instead use extend() on the lists to save all the results