proxy_fetcher 0.1.0 → 0.1.1
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/.gitignore +1 -0
- data/README.md +5 -5
- data/lib/proxy_fetcher/configuration.rb +1 -1
- data/lib/proxy_fetcher/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: 929248449265daefef4079decba21be77d36c610
|
4
|
+
data.tar.gz: 1efc0967583b3a1cc3164b5a524d1b9cfa6e4a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c12cd3940d6f81a7a9ee462d8b9e4a8e364013a735172c1ca9444a2d69741f96642de532384cd1de8d6a4f1e77daa038048b6a1140c9e835e2a9f70d28d3a8c
|
7
|
+
data.tar.gz: 3e01791ebbdff7608f206a85a86cc7a7701b830aad425475f47fb1d14b4bd11c32225a279a72a131b40b1dbd441973da0b2f5fb4e9381da0c09caa9cfeeb129e
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -34,8 +34,8 @@ Get current proxy list:
|
|
34
34
|
manager = ProxyFetcher::Manager.new # will immediately load proxy list from the server
|
35
35
|
manager.proxies
|
36
36
|
|
37
|
-
#=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=
|
38
|
-
# @response_time=
|
37
|
+
#=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=3128, @country="USA",
|
38
|
+
# @response_time=5217, @speed=48, @connection_time=100, @type="HTTP", @anonymity="High">, ... ]
|
39
39
|
```
|
40
40
|
|
41
41
|
Get raw proxy URLs:
|
@@ -53,8 +53,8 @@ If `ProxyFetcher::Manager` was already initialized somewhere, you can refresh th
|
|
53
53
|
```ruby
|
54
54
|
manager.refresh_list!
|
55
55
|
|
56
|
-
#=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=
|
57
|
-
# @response_time=
|
56
|
+
#=> [#<ProxyFetcher::Proxy:0x00000002879680 @addr="97.77.104.22", @port=3128, @country="USA",
|
57
|
+
# @response_time=5217, @speed=48, @connection_time=100, @type="HTTP", @anonymity="High">, ... ]
|
58
58
|
```
|
59
59
|
|
60
60
|
Every proxy is a `ProxyFetcher::Proxy` object that has next readers:
|
@@ -86,7 +86,7 @@ To change open/read timeout for `cleanup!` and `connectable?` methods yu need to
|
|
86
86
|
|
87
87
|
```ruby
|
88
88
|
ProxyFetcher::Manager.config.read_timeout = 1 # default is 3
|
89
|
-
ProxyFetcher::Manager.config.open_timeout = 1# default is 3
|
89
|
+
ProxyFetcher::Manager.config.open_timeout = 1 # default is 3
|
90
90
|
|
91
91
|
manager = ProxyFetcher::Manager.new
|
92
92
|
manager.cleanup!
|