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
88
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
64
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
750
Other Decks in Programming
See All in Programming
From Formal Specification to Property Based Test
ohbarye
0
670
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.6k
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.5k
GitHubCopilotCLIをはじめよう.pdf
htkym
0
310
Agent Skills を社内で育てる仕組み作り
jackchuka
0
260
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.5k
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
160
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
140
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
230
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
450
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
620
Don't Prompt Harder, Structure Better
kitasuke
0
810
Featured
See All Featured
Paper Plane
katiecoart
PRO
1
49k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
How to Talk to Developers About Accessibility
jct
2
190
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
180
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
690
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!