nx-xici-proxy 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a55fa8142109e069e955153c52455e157692779b8ad993a76754824ab0cdc05
4
- data.tar.gz: 22f648213b046aaf6f9a4bb0d2632083210b983514f8e1b1c10f6cefc00031ef
3
+ metadata.gz: a65f811d415d3aa7844b9eb3ec9a0a1a66cd2605bd22d6dcfb77165eb1dad524
4
+ data.tar.gz: ae8068bda05908c13d84a2886c62d4e7321fa533c79e301b75b7fc38a85d257f
5
5
  SHA512:
6
- metadata.gz: bdc60eed41654a7e1fc8106ce4a57f5ca5041f8de2ec31f55133f7cae266b964fc577103b1f628e6b7ff4403753cad8a3033943d410012a8238d372289251da3
7
- data.tar.gz: ad8ce1215b558ce2914783525a34f9b8f2a20f6da857279f2daba886ea9416629e3db6cb1f71126bb4f709b08dc17019fbf8b761f6611d58e99955b68f1171e1
6
+ metadata.gz: aa17a308c02d21cc650e1cc156f64ed1c30e431a3e0d533bc27f72ac19cedfd67e7f7faef3688d47f4554d7ad8d844fbe707f246786566278365cde732aa0b12
7
+ data.tar.gz: 218fdae90bfd45a81bc8da9b98fde8433d198ab651a2634ab19969b9f7ca76c826cff4f1f9341bfcaf0c6486cb9d305f32f485088a6c83d3c24be20b2d306602
@@ -1,2 +1,2 @@
1
- require "nx/version"
2
- require "nx/xici-proxy"
1
+ require_relative "./nx/version"
2
+ require_relative "./nx/xici-proxy"
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class XiciProxy
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -6,16 +6,16 @@ module Nx
6
6
  def self.fetch
7
7
  doc = Nokogiri::HTML(
8
8
  open(
9
- "https://www.xicidaili.com/",
9
+ "https://www.xicidaili.com/wn/",
10
10
  read_timeout: 5,
11
11
  )
12
12
  )
13
13
 
14
14
  # process html use selector
15
- rows = doc.css("#ip_list tr").slice(0, 22)
15
+ rows = doc.css("#ip_list tr")
16
16
  data = []
17
17
  rows.each_with_index do |row, index|
18
- if index > 2
18
+ if index > 0
19
19
  ip = row.css("td:nth-child(2)").text
20
20
  port = row.css("td:nth-child(3)").text
21
21
  data << { ip: ip, port: port }
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nx-xici-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,8 +60,8 @@ files:
60
60
  - lib/nx-xici-proxy.rb
61
61
  - lib/nx/version.rb
62
62
  - lib/nx/xici-proxy.rb
63
- - nx-xici-proxy-0.1.0.gem
64
- - nx-xici-proxy-0.1.1.gem
63
+ - nx-xici-proxy-0.1.2.gem
64
+ - nx-xici-proxy-0.1.3.gem
65
65
  - nx-xici-proxy.gemspec
66
66
  homepage: https://github.com/afeiship/nx-xici-proxy
67
67
  licenses:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.1.2
85
+ rubygems_version: 3.0.3
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Xici proxy.
Binary file
Binary file