You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/guides/how_to_create_collector.rst
+46-4Lines changed: 46 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,21 @@
1
1
proxy_py How to create collector
2
2
================================
3
3
4
-
Collector is a class which is used to parse proxies from web page or another source. All collectors are inherited from `collectors.abstract_collector.AbstractCollector`, also there is `collectors.pages_collector.PagesCollector` which is used for paginated sources. It's better to understand through examples.
4
+
Collector is a class which is used to parse proxies from web page or another source.
5
+
All collectors are inherited from `collectors.abstract_collector.AbstractCollector`,
6
+
also there is `collectors.pages_collector.PagesCollector` which is used for paginated sources.
7
+
It's better to understand through examples.
5
8
6
9
Simple collector
7
10
****************
8
11
9
-
Let's start with the simplest collector we can imagine, it will be from the page http://www.89ip.cn/ti.html as you can see, it sends form as GET request to this url http://www.89ip.cn/tqdl.html?num=9999&address=&kill_address=&port=&kill_port=&isp=
12
+
Let's start with the simplest collector we can imagine,
13
+
it will be from the page http://www.89ip.cn/ti.html as you can see,
Firstly we can try to check that these proxies are really good. Just copy and paste list of proxies to file say /tmp/proxies and run this command inside virtual environment
17
+
Firstly we can try to check that these proxies are really good.
18
+
Just copy and paste list of proxies to file say /tmp/proxies and run this command inside virtual environment
12
19
13
20
.. code-block:: bash
14
21
@@ -18,10 +25,45 @@ You're gonna get something like this:
0 commit comments