Skip to content

Instantly share code, notes, and snippets.

@seppo0010
Created October 28, 2019 01:19
Show Gist options
  • Save seppo0010/f186508e42efea7ae21f037017b4fef6 to your computer and use it in GitHub Desktop.
Save seppo0010/f186508e42efea7ae21f037017b4fef6 to your computer and use it in GitHub Desktop.
import requests
r = requests.get('https://resultados2019.gob.ar/assets/data/totalized_results/regions/5/5589.json').json()
fit = float([x for x in r['rp'] if x['pc'] == 144 and x['cc'] == 1026][0]['v'])
fdt = float([x for x in r['rp'] if x['pc'] == 109 and x['cc'] == 1026][0]['v'])
jxc = float([x for x in r['rp'] if x['pc'] == 145 and x['cc'] == 1026][0]['v'])
print('FIT', fit / 1)
print('FDT', fdt / 5)
print('JxC', jxc / 8)
print('entra la rusa' if fit > fdt / 5 and fit > jxc / 8 else 'no entra la rusa')
@Lzok
Copy link

Lzok commented Oct 28, 2019

JAJAJAJAJJA Excelente

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment