Skip to content

Instantly share code, notes, and snippets.

@pmarkun
Created September 25, 2013 19:49
Show Gist options
  • Select an option

  • Save pmarkun/6705058 to your computer and use it in GitHub Desktop.

Select an option

Save pmarkun/6705058 to your computer and use it in GitHub Desktop.
import urllib
total = 0
a = urllib.urlopen('https://gist.github.com/pmarkun/6705039/raw/0bc3cc567baa734dce1408bae91556b064473bb7/gistfile1.txt')
for i in a.readlines():
if 'Inscritos:' in i:
total += int(i.strip('Inscritos: ').strip())
print 'Total de inscritos: ' + str(total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment