Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Open Data y Transparencia

dcabo
February 26, 2015
68

Open Data y Transparencia

dcabo

February 26, 2015
Tweet

Transcript

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

    to mine.”, someone on the internet, after using data. data-reality
  2. title =~ /([Dd]on|[Dd]oña)/ prefix = $1 gender = prefix.index("ñ") ?

    ‘M’ : ‘H’ Expresiones regulares en ruby
  3. 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
  4. reuniones ‘discretas’ “SI ALGUIEN QUIERE TENER UNA REUNIÓN discreta CONMIGO,

    YO LA TENGO”, mariano rajoy, 18 de abril del 2013, en el congreso.
  5. 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