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
75
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
78
Lightning Talk: Testes em Javascript
dukex
0
110
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
110
Concorrência em GO
dukex
0
35
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
930
Grid System com Amor
dukex
0
690
Other Decks in Programming
See All in Programming
AWS re:Invent 2024個人的まとめ
satoshi256kbyte
0
140
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
940
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.5k
traP の部内 ISUCON とそれを支えるポータル / PISCON Portal
ikura_hamu
0
230
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
430
DevinとCursorから学ぶAIエージェントメモリーの設計とMoatの考え方
itarutomy
1
450
ISUCON14感想戦で85万点まで頑張ってみた
ponyo877
1
770
カンファレンス動画鑑賞会のススメ / Osaka.swift #1
hironytic
0
190
ErdMap: Thinking about a map for Rails applications
makicamel
1
890
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
190
個人アプリを2年ぶりにアプデしたから褒めて / I just updated my personal app, praise me!
lovee
0
270
rails newと同時に型を書く
aki19035vc
6
730
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
6
210
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
370
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Thoughts on Productivity
jonyablonski
68
4.4k
Faster Mobile Websites
deanohume
305
30k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
590
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
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!