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
83
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
90
Lightning Talk: Testes em Javascript
dukex
0
120
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
120
Concorrência em GO
dukex
0
43
Meetup Go - Como construi o uhuraapp.com
dukex
4
700
Realtime - Usando o MeteorJS
dukex
3
620
Como fazer API melhor que o governo?
dukex
1
710
Raspagem de Dados com Ruby
dukex
1
970
Grid System com Amor
dukex
0
720
Other Decks in Programming
See All in Programming
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2.1k
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
39k
愛される翻訳の秘訣
kishikawakatsumi
3
370
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
710
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
150
AtCoder Conference 2025
shindannin
0
930
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
310
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
130
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
250
Vibe codingでおすすめの言語と開発手法
uyuki234
0
170
はじめてのカスタムエージェント【GitHub Copilot Agent Mode編】
satoshi256kbyte
0
160
gunshi
kazupon
1
140
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
140
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
200
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.5k
Skip the Path - Find Your Career Trail
mkilby
0
42
Optimizing for Happiness
mojombo
379
70k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Building AI with AI
inesmontani
PRO
1
620
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!