2 Star 0 Fork 0

Tinkle/f6爬虫

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 806 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tinkle 提交于 2023-12-21 19:24 . init
# -*- coding: utf-8 -*-
# Auther : 风雪
# Date : 2023/12/8 11:18
# File : test.py
# data={"蓄电池": [{"标注1": {}},{"标注2": {}}]}
#
# mong_fn("id",data)
#coding=utf-8
import requests
#请求地址
targetUrl = "https://myip.top"
# 110.42.9.74:16259 lqPDDcQt rWNXle8T
# 110.42.9.74:16259 lqPDDcQt rWNXle8T
#代理服务器
proxyHost = "110.42.9.74" #代理IP
proxyPort = "16259" #代理端口
proxyUser = "lqPDDcQt" #代理账户
proxyPass = "rWNXle8T" #代理密码
# Python3
proxyMeta = f"http://{proxyUser}:{proxyPass}@{proxyHost}:{proxyPort}"
proxies = {
"http" : proxyMeta,
"https" : proxyMeta
}
resp = requests.get(targetUrl, proxies=proxies)
print("Use proxies:", proxies)
print("Respose status code: ", resp.status_code)
print("Respose content: ", resp.text)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tinkleCat/f6-crawler.git
[email protected]:tinkleCat/f6-crawler.git
tinkleCat
f6-crawler
f6爬虫
master

搜索帮助