Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
LigthingTalk: Sinatra + Hpricot
Search
Duke
September 18, 2010
Programming
87
1
Share
LigthingTalk: Sinatra + Hpricot
Uma LigthingTalk no #GuruSP, um das minha primeiras apresetações
Duke
September 18, 2010
More Decks by Duke
See All by Duke
Docker
dukex
0
98
Lightning Talk: Testes em Javascript
dukex
0
130
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
130
Concorrência em GO
dukex
0
57
Meetup Go - Como construi o uhuraapp.com
dukex
4
710
Realtime - Usando o MeteorJS
dukex
3
630
Como fazer API melhor que o governo?
dukex
1
730
Raspagem de Dados com Ruby
dukex
1
980
Grid System com Amor
dukex
0
740
Other Decks in Programming
See All in Programming
Feature Toggle は捨てやすく使おう
gennei
0
570
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
180
感情を設計する
ichimichi
5
1.4k
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
290
Getting more out of Maven
mlvandijk
0
110
アーキテクチャモダナイゼーションとは何か
nwiizo
17
5k
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
120
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
110
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
490
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
19
7.5k
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
760
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
260
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Automating Front-end Workflow
addyosmani
1370
200k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
880
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Mind Mapping
helmedeiros
PRO
1
150
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
270
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
210
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
27
3.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
$ ruby app.rb Raspando dados com Sinatra e Hpricot
{ name: 'Emerson Vinicius', github: 'emersonvinicius ' }
Sinatra
require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end
require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end
require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end
require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end
Hpricot
None
require 'rubygems' require 'open-uri' require 'hpricot' url = 'http://br.weather.yahoo.com/brazil/sao-paulo/sao- paulo-455827/'
tempo = Hpricot(open(url).read) (tempo/"[@id='yw-temp']").inner_text // 27°
require 'rubygems' require 'open-uri' require 'hpricot' url = 'http://br.weather.yahoo.com/brazil/sao-paulo/sao- paulo-455827/'
tempo = Hpricot(open(url).read) (tempo/"[@id='yw-temp']").inner_text // 27°
require 'rubygems' require 'open-uri' require 'hpricot' url = 'http://br.weather.yahoo.com/brazil/sao-paulo/sao- paulo-455827/'
tempo = Hpricot(open(url).read) (tempo/"[@id='yw-temp']").inner_text // 27°
require 'rubygems' require 'open-uri' require 'hpricot' url = 'http://br.weather.yahoo.com/brazil/sao-paulo/sao- paulo-455827/'
tempo = Hpricot(open(url).read) (tempo/"[@id='yw-temp']").inner_text // 27° #WIN
O que fazer com isso?
None
None
None
None
None
None
None
{ name: 'Emerson Vinicius', twitter: '@emersonvinicius', gtalk: 'duke.m16', github: 'emersonvinicius
' } Obrigado!