Open Data y Transparencia

582c3149594a35cbff558b815db651c5?s=47 dcabo
February 26, 2015
34

Open Data y Transparencia

582c3149594a35cbff558b815db651c5?s=128

dcabo

February 26, 2015
Tweet

Transcript

  1. 3.

    “Data is the new coal — abundant, dirty and difficult

    to mine.”, someone on the internet, after using data. data-reality
  2. 4.
  3. 5.
  4. 6.
  5. 7.
  6. 9.
  7. 10.
  8. 11.
  9. 12.
  10. 13.
  11. 16.
  12. 23.
  13. 24.
  14. 25.
  15. 26.
  16. 27.
  17. 28.
  18. 30.
  19. 31.

    title =~ /([Dd]on|[Dd]oña)/ prefix = $1 gender = prefix.index("ñ") ?

    ‘M’ : ‘H’ Expresiones regulares en ruby
  20. 32.
  21. 33.
  22. 36.
  23. 39.
  24. 40.
  25. 41.
  26. 42.
  27. 44.

    doc = Nokogiri::HTML(open(filename)) rows = doc.css('table.S0ESTILO9 tr’) rows.each do |row|

    columns = row.css(‘td') .map{|td| td.text.strip} amount = columns[4] … end nokogiri
  28. 46.

    reuniones ‘discretas’ “SI ALGUIEN QUIERE TENER UNA REUNIÓN discreta CONMIGO,

    YO LA TENGO”, mariano rajoy, 18 de abril del 2013, en el congreso.
  29. 49.
  30. 50.
  31. 51.
  32. 56.
  33. 57.

    agent = Mechanize.new page = agent.get(company_page_url) board_link = page.link_with(:text =>

    /Consejo/) board_html = board_link.click.content # Use nokogiri to get the data mechanize
  34. 61.
  35. 62.