tweetlr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -0
- data/Rakefile +1 -1
- data/lib/tweetlr.rb +2 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
tweetlr crawls twitter for a given term, extracts photos out of the collected tweets' short urls and posts the images to tumblr.
|
4
4
|
|
5
|
+
## Supported image sharing services
|
6
|
+
|
7
|
+
tweetlr supports
|
8
|
+
- instagram
|
9
|
+
- picplz
|
10
|
+
- twitpic
|
11
|
+
- yfrog
|
12
|
+
- imgly
|
13
|
+
- lockerz / the service formerly known as plixi
|
14
|
+
- tco shortened links to pictures
|
15
|
+
|
5
16
|
## Installation
|
6
17
|
|
7
18
|
Use `gem install tweetlr` if you're using *rubygems* or add the line `gem 'tweetlr'` to your `Gemfile` if you're using *bundler*.
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
|
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
9
|
s.name = 'tweetlr'
|
10
|
-
s.version = '0.1.
|
10
|
+
s.version = '0.1.1'
|
11
11
|
s.has_rdoc = true
|
12
12
|
s.extra_rdoc_files = ['README.md', 'LICENSE']
|
13
13
|
s.summary = %{tweetlr crawls twitter for a given term, extracts photos out of the collected tweets' short urls and posts the images to tumblr.}
|
data/lib/tweetlr.rb
CHANGED
@@ -140,13 +140,14 @@ class Tweetlr
|
|
140
140
|
url = image_url_yfrog link if link.index 'yfrog'
|
141
141
|
url = image_url_imgly link if link.index 'img.ly'
|
142
142
|
url = image_url_tco link if link.index 't.co'
|
143
|
+
url = image_url_lockerz link if link.index 'lockerz.com'
|
143
144
|
end
|
144
145
|
url
|
145
146
|
end
|
146
147
|
#find the image's url for a lockerz link
|
147
148
|
def image_url_lockerz(link_url)
|
148
149
|
response = http_get "http://api.plixi.com/api/tpapi.svc/json/metadatafromurl?details=false&url=#{link_url}"
|
149
|
-
response[
|
150
|
+
response["BigImageUrl"] if response
|
150
151
|
end
|
151
152
|
#find the image's url for an twitter shortened link
|
152
153
|
def image_url_tco(link_url)
|