amazon2irc 7.11.2017.020024 → 7.11.2017.020025
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amazon2irc.rb +5 -5
- data/lib/amazon2irc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6be17ad7939d6716b5e68ac88618543008ea25d1
|
4
|
+
data.tar.gz: f4844fb99e33a5d2f8a964e531386e2c826aea69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b867bfc9576add23ec01979379dad6fc376f98ce3b4cac4a7aecb06636b84e58c4d0b73672f7b9553e0a249425e6bdfab0b0bb271cae17550330d952f9b2f3f2
|
7
|
+
data.tar.gz: d8623f7c581d8e72e72fe726a8503895bd29dbdcb19452905d2b854c4ce4f89b4a84e0d4b5373a3859ae438ffe140f6bb87a0fa451f95436219b84b33da1cf73
|
data/lib/amazon2irc.rb
CHANGED
@@ -16,8 +16,8 @@ module Amazon2irc
|
|
16
16
|
connect
|
17
17
|
wait
|
18
18
|
loop do
|
19
|
-
scanning if opts['rss']
|
20
|
-
spidering if opts['spidering']
|
19
|
+
scanning if @opts['rss']
|
20
|
+
spidering if @opts['spidering']
|
21
21
|
write_persistent_array
|
22
22
|
sleep @opts['scan-delay']
|
23
23
|
end
|
@@ -67,7 +67,7 @@ module Amazon2irc
|
|
67
67
|
|
68
68
|
def spidering
|
69
69
|
@opts['keywords'].each do |item|
|
70
|
-
@conn.puts "PRIVMSG #{@opts['channel']} :Bot
|
70
|
+
@conn.puts "PRIVMSG #{@opts['channel']} :Bot Spidering: #{item}"
|
71
71
|
AmazonMechanize.scan(item).each do |res|
|
72
72
|
unless @items.include? res
|
73
73
|
irc_logger2(res)
|
@@ -105,11 +105,11 @@ module Amazon2irc
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def irc_logger item
|
108
|
-
@conn.puts "PRIVMSG #{@opts['channel']} :#{item.title} - #{item.link}"
|
108
|
+
@conn.puts "PRIVMSG #{@opts['channel']} :#{item.title} - #{item.link}&tag=jaycorpinc-20&camp=1789&linkCode=xm2"
|
109
109
|
end
|
110
110
|
|
111
111
|
def irc_logger2 item
|
112
|
-
@conn.puts "PRIVMSG #{@opts['channel']} :#{item}/ref=sr_1_2?s=prime-day&psr=PDAY&ie=UTF8&qid=1499752396&sr=1-2&keywords="
|
112
|
+
@conn.puts "PRIVMSG #{@opts['channel']} :#{item}/ref=sr_1_2?s=prime-day&psr=PDAY&ie=UTF8&qid=1499752396&sr=1-2&keywords=&tag=jaycorpinc-20&camp=1789&linkCode=xm2"
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
data/lib/amazon2irc/version.rb
CHANGED