kmj 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kmj.rb +3 -1
  3. data/lib/kmj/version.rb +1 -1
  4. data/result.txt +5 -0
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a37172fa49d5860e99b8cf035867147b905c449a
4
- data.tar.gz: b4a987ed57e0052c239682117c20370af5f927f5
3
+ metadata.gz: f309d12f57e46d0df4d92351dc7c7bfcf37816b3
4
+ data.tar.gz: 53895a70ee9cdedc4a6b713a296ca8871a6ddc59
5
5
  SHA512:
6
- metadata.gz: d0a18a1fce0d8035275fe5ca13568985677f6695ab6276a3def753befc60ba99ab7369529bb31476e2f6e261756266b11a6fdb6788ce539a0df354ad7631b712
7
- data.tar.gz: a12f439083a5fd815b241bc512ab630ef1b4d367913d12e1d977a04a30aeacad82767f565aad9d882eafc1bbbb735b304bf02eab29511bce08166baa74d97eaa
6
+ metadata.gz: 65584b8cfdd8d170c80e6bf006b1cfac6ec5e8d80f670ce4ba742a1f4e6bdfedcb509e6696c57b3e85b366cb5bb90799856e506a35b4a817427643cf8b56edfa
7
+ data.tar.gz: c8d666626f142fe37c11420622edd9c379ef6b73a6b843f446efb8f3e24b16b015334f9347e38ef0e1603d8ed82e5d473dcec395316a2de3c616a1b959bc518d
data/lib/kmj.rb CHANGED
@@ -8,18 +8,20 @@ module Kmj
8
8
  @url = url
9
9
  end
10
10
  def parse
11
- list = Nokogiri::HTML(open(url))
11
+ list = Nokogiri::HTML(open(@url))
12
12
  list = list.css('div.vpl')
13
13
  File.open("result.txt", "w") do |file|
14
14
  list.css("a").each do |a|
15
15
  link = a.attr('href')
16
16
  if link.include?("ed2k://") || link.include?("thunder://")
17
17
  file.puts link
18
+ puts link
18
19
  end
19
20
  end
20
21
  end
21
22
 
22
23
  system "pbcopy < result.txt"
24
+ puts "Links copied to clipboard!"
23
25
  end
24
26
 
25
27
 
@@ -1,3 +1,3 @@
1
1
  module Kmj
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,5 @@
1
+ ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S08E01.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.624X352.mp4|103480166|286cfe523148110db4bd3311dea2e8ed|h=7vrrk4sqcvaxmj4osrfn5hpmpf74yefx|/
2
+ ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S08E02.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.624X352.mp4|97667842|c88d215e492fdbfe1d6934bf7497eacc|h=zygdeqmbjsz6z4nnxrbntpprurmwtz3f|/
3
+ ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S08E03.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.624X352.mp4|96943526|71238064b130c4506bde0e33824d6ec0|h=qe2a7apnl2cv7cindoqvm5eoraebpc67|/
4
+ ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S08E04.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.624X352.mp4|92249172|33129786b3526dca8c38ca5c346a9a15|h=ullbkl2iaajdkkm3pkboq24lxkjlsbkl|/
5
+ ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S08E05.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.624X352.mp4|95209346|5b367bebddf0e1616ebbe7295f0fe38f|h=frcwwixxnmudnv2k56eokntagljb34k4|/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kmj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - xdite
@@ -69,6 +69,7 @@ files:
69
69
  - kmj.gemspec
70
70
  - lib/kmj.rb
71
71
  - lib/kmj/version.rb
72
+ - result.txt
72
73
  homepage: ''
73
74
  licenses:
74
75
  - MIT