instapi 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/instapi.rb +2 -1
- data/lib/instapi/version.rb +1 -1
- metadata +1 -1
data/lib/instapi.rb
CHANGED
@@ -42,7 +42,8 @@ class Instapi
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def self.text(url)
|
45
|
-
|
45
|
+
@_client ||= HTTPClient.new
|
46
|
+
doc = Nokogiri::HTML(@_client.get_content("#{BASE_URL}/text?u=#{url}"))
|
46
47
|
{
|
47
48
|
:title => doc.css('title').first.text,
|
48
49
|
:text => doc.css('#story').first.inner_html
|
data/lib/instapi/version.rb
CHANGED