Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ docs/_build
*.pyc
*.log
.tox
/SPEC.md
/.claude/settings.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ PROXY_FETCHER = [
| 免费代理库 | ✔ | ☆ | * | [地址](http://ip.jiangxianli.com/) | [`freeProxy09`](/fetcher/proxyFetcher.py#L143) |
| 89代理 | ✔ | ☆ | * | [地址](https://www.89ip.cn/) | [`freeProxy10`](/fetcher/proxyFetcher.py#L154) |
| 稻壳代理 | ✔ | ★★ | *** | [地址](https://www.docip.ne) | [`freeProxy11`](/fetcher/proxyFetcher.py#L164) |
| 谷德代理 | ✔ | ★★ | *** | [地址](https://www.goodips.com) | [`freeProxy12`](/fetcher/proxyFetcher.py#L174) |


如果还有其他好的免费代理网站, 可以在提交在[issues](https://github.com/jhao104/proxy_pool/issues/71), 下次更新时会考虑在项目中支持。
Expand Down
13 changes: 12 additions & 1 deletion fetcher/proxyFetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ def freeProxy11():
except Exception as e:
print(e)

@staticmethod
def freeProxy12():
""" 谷德代理 https://www.goodips.com/ """
url = "https://www.goodips.com/"
tree = WebRequest().get(url, verify=False).tree
for item in tree.xpath("//div[@class='table-list']"):
ip = "".join(item.xpath("./ul/li[1]/text()")).strip()
port = "".join(item.xpath("./ul/li[2]/text()")).strip()
if ip and port:
yield "%s:%s" % (ip, port)

# @staticmethod
# def wallProxy01():
# """
Expand Down Expand Up @@ -235,7 +246,7 @@ def freeProxy11():

if __name__ == '__main__':
p = ProxyFetcher()
for _ in p.freeProxy06():
for _ in p.freeProxy12():
print(_)

# http://nntime.com/proxy-list-01.htm
11 changes: 4 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
requests==2.20.0
requests==2.30.0
gunicorn==19.9.0
lxml==4.9.2
redis==3.5.3
APScheduler==3.10.0;python_version>="3.10"
APScheduler==3.2.0;python_version<"3.10"
click==8.0.1;python_version>"3.6"
click==7.0;python_version<="3.6"
Flask==2.1.1;python_version>"3.6"
Flask==1.0;python_version<="3.6"
werkzeug==2.1.0;python_version>"3.6"
werkzeug==0.15.5;python_version<="3.6"
click==8.0.1
Flask==2.1.1
werkzeug==2.1.0
3 changes: 2 additions & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"freeProxy08",
"freeProxy09",
"freeProxy10",
"freeProxy11"
"freeProxy11",
"freeProxy12",
]

# ############# proxy validator #################
Expand Down
Loading