Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
LigthingTalk: Sinatra + Hpricot
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Duke
September 18, 2010
Programming
100
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
110
Lightning Talk: Testes em Javascript
dukex
0
140
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
150
Concorrência em GO
dukex
0
89
Meetup Go - Como construi o uhuraapp.com
dukex
4
740
Realtime - Usando o MeteorJS
dukex
3
670
Como fazer API melhor que o governo?
dukex
1
780
Raspagem de Dados com Ruby
dukex
1
1k
Grid System com Amor
dukex
0
770
Other Decks in Programming
See All in Programming
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
260
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
670
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
220
ChromeでローカルLLM
ryu1013
0
190
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
1.2k
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
120
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
140
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
340
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
130
パスワード再設定メールのURLについて知っておこう
uyuki234
0
210
Kotlinの15年とServer-Side Kotlin
n_takehata
1
190
Seven New Principles of Software Engineering
yegor256
0
420
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
550
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
340
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
780
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
600
Odyssey Design
rkendrick25
PRO
2
910
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
How STYLIGHT went responsive
nonsquared
100
6.3k
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!