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 +4 -4
- data/lib/nx-xici-proxy.rb +2 -2
- data/lib/nx/version.rb +1 -1
- data/lib/nx/xici-proxy.rb +3 -3
- data/nx-xici-proxy-0.1.2.gem +0 -0
- data/nx-xici-proxy-0.1.3.gem +0 -0
- metadata +5 -5
- data/nx-xici-proxy-0.1.0.gem +0 -0
- data/nx-xici-proxy-0.1.1.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a65f811d415d3aa7844b9eb3ec9a0a1a66cd2605bd22d6dcfb77165eb1dad524
|
|
4
|
+
data.tar.gz: ae8068bda05908c13d84a2886c62d4e7321fa533c79e301b75b7fc38a85d257f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa17a308c02d21cc650e1cc156f64ed1c30e431a3e0d533bc27f72ac19cedfd67e7f7faef3688d47f4554d7ad8d844fbe707f246786566278365cde732aa0b12
|
|
7
|
+
data.tar.gz: 218fdae90bfd45a81bc8da9b98fde8433d198ab651a2634ab19969b9f7ca76c826cff4f1f9341bfcaf0c6486cb9d305f32f485088a6c83d3c24be20b2d306602
|
data/lib/nx-xici-proxy.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require_relative "./nx/version"
|
|
2
|
+
require_relative "./nx/xici-proxy"
|
data/lib/nx/version.rb
CHANGED
data/lib/nx/xici-proxy.rb
CHANGED
|
@@ -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")
|
|
15
|
+
rows = doc.css("#ip_list tr")
|
|
16
16
|
data = []
|
|
17
17
|
rows.each_with_index do |row, index|
|
|
18
|
-
if index >
|
|
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.
|
|
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-
|
|
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.
|
|
64
|
-
- nx-xici-proxy-0.1.
|
|
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.
|
|
85
|
+
rubygems_version: 3.0.3
|
|
86
86
|
signing_key:
|
|
87
87
|
specification_version: 4
|
|
88
88
|
summary: Xici proxy.
|
data/nx-xici-proxy-0.1.0.gem
DELETED
|
Binary file
|
data/nx-xici-proxy-0.1.1.gem
DELETED
|
Binary file
|