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
1
73
LigthingTalk: Sinatra + Hpricot
Uma LigthingTalk no #GuruSP, um das minha primeiras apresetações
Duke
September 18, 2010
Tweet
Share
More Decks by Duke
See All by Duke
Docker
dukex
0
75
Lightning Talk: Testes em Javascript
dukex
0
100
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
110
Concorrência em GO
dukex
0
31
Meetup Go - Como construi o uhuraapp.com
dukex
4
670
Realtime - Usando o MeteorJS
dukex
3
590
Como fazer API melhor que o governo?
dukex
1
680
Raspagem de Dados com Ruby
dukex
1
920
Grid System com Amor
dukex
0
690
Other Decks in Programming
See All in Programming
rbs-inlineを導入してYARDからRBSに移行する
euglena1215
1
230
Regular Expressions, REXML, Automata Learning
makenowjust
0
190
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
1
1.1k
XStateでReactに秩序を与えたい
gizm000
0
510
Meet BrowserEngineKit
swiftty
0
310
Amebaチョイス立ち上げの裏側 ~依存システムとの闘い~
daichi_igarashi
0
220
Desafios e Lições Aprendidas na Migração de Monólitos para Microsserviços em Java
jessilyneh
2
140
Rubyのobject_id
qnighy
6
1.3k
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
870
オートマトン学習しろ / Do automata learning
makenowjust
3
110
Swiftで高速フーリエ変換してオーディオビジュアライザーを作る / iOSDC Japan 2024 Day1 Track D
kyome22
2
490
実践 Advanced CallKit 〜快適な通話の実現に向けて〜
mot_techtalk
3
120
Featured
See All Featured
Become a Pro
speakerdeck
PRO
22
4.9k
A Philosophy of Restraint
colly
202
16k
Code Reviewing Like a Champion
maltzj
518
39k
Designing for humans not robots
tammielis
248
25k
Building an army of robots
kneath
302
42k
Designing the Hi-DPI Web
ddemaree
278
34k
Code Review Best Practice
trishagee
62
16k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
BBQ
matthewcrist
83
9.1k
GitHub's CSS Performance
jonrohan
1029
450k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
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!