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
72
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
73
Lightning Talk: Testes em Javascript
dukex
0
97
Lightning Talk: Fluxo (básico) Ember 1.x.x
dukex
0
99
Concorrência em GO
dukex
0
30
Meetup Go - Como construi o uhuraapp.com
dukex
4
660
Realtime - Usando o MeteorJS
dukex
3
590
Como fazer API melhor que o governo?
dukex
1
670
Raspagem de Dados com Ruby
dukex
1
860
Grid System com Amor
dukex
0
680
Other Decks in Programming
See All in Programming
PHP で読む楽しいコアダンプ
sji
0
240
導入から5年が経って見えた Datadog APM 運用の課題
bgpat
2
540
15分間でふんわり理解するDocker @ Matsuriba MAX
ukwhatn
PRO
1
330
IntelliJ IDEA を知らなかった 自分に教えたい小ネタ集 / IntelliJ IDEA Hints for My Past Self
mackey0225
3
150
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
BuefyのMaintainerを引き継いだ件
kikuomax
0
510
[スクリプト] Swiftの型推論を学ぼう
omochi
0
100
AppDeveloperCon 2024 EU: Building polyglot developer experiences in 2024
salaboy
0
370
DocC Tutorial と TCA におけるテスト機能の紹介
kalupas226
1
330
Some Quick Ideas To Improve Your Tests ( #jassttokyo )
teyamagu
PRO
2
2.3k
TDDと今まで
kanayannet
0
140
The Future of C++ Interoperability: Insights from Porting a Game to Swift
teamhimeh
0
260
Featured
See All Featured
A better future with KSS
kneath
230
16k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.3k
Fontdeck: Realign not Redesign
paulrobertlloyd
75
4.8k
Building Adaptive Systems
keathley
29
1.8k
The Invisible Customer
myddelton
114
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
8
8.2k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.8k
We Have a Design System, Now What?
morganepeng
42
6.7k
Docker and Python
trallard
33
2.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
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!