# DO NOT EDIT THIS FILE!
#
# This file is generated from the CDP specification. If you need to make
# changes, edit the generator and regenerate all of the modules.
#
# CDP domain: Network
from __future__ import annotations
from .util import event_class, T_JSON_DICT
from dataclasses import dataclass
import enum
import typing
from . import debugger
from . import emulation
from . import io
from . import page
from . import runtime
from . import security
class ResourceType(enum.Enum):
'''
Resource type as it was perceived by the rendering engine.
'''
DOCUMENT = "Document"
STYLESHEET = "Stylesheet"
IMAGE = "Image"
MEDIA = "Media"
FONT = "Font"
SCRIPT = "Script"
TEXT_TRACK = "TextTrack"
XHR = "XHR"
FETCH = "Fetch"
PREFETCH = "Prefetch"
EVENT_SOURCE = "EventSource"
WEB_SOCKET = "WebSocket"
MANIFEST = "Manifest"
SIGNED_EXCHANGE = "SignedExchange"
PING = "Ping"
CSP_VIOLATION_REPORT = "CSPViolationReport"
PREFLIGHT = "Preflight"
OTHER = "Other"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
class LoaderId(str):
'''
Unique loader identifier.
'''
def to_json(self) -> str:
return self
@classmethod
def from_json(cls, json: str) -> LoaderId:
return cls(json)
def __repr__(self):
return 'LoaderId({})'.format(super().__repr__())
class RequestId(str):
'''
Unique request identifier.
'''
def to_json(self) -> str:
return self
@classmethod
def from_json(cls, json: str) -> RequestId:
return cls(json)
def __repr__(self):
return 'RequestId({})'.format(super().__repr__())
class InterceptionId(str):
'''
Unique intercepted request identifier.
'''
def to_json(self) -> str:
return self
@classmethod
def from_json(cls, json: str) -> InterceptionId:
return cls(json)
def __repr__(self):
return 'InterceptionId({})'.format(super().__repr__())
class ErrorReason(enum.Enum):
'''
Network level fetch failure reason.
'''
FAILED = "Failed"
ABORTED = "Aborted"
TIMED_OUT = "TimedOut"
ACCESS_DENIED = "AccessDenied"
CONNECTION_CLOSED = "ConnectionClosed"
CONNECTION_RESET = "ConnectionReset"
CONNECTION_REFUSED = "ConnectionRefused"
CONNECTION_ABORTED = "ConnectionAborted"
CONNECTION_FAILED = "ConnectionFailed"
NAME_NOT_RESOLVED = "NameNotResolved"
INTERNET_DISCONNECTED = "InternetDisconnected"
ADDRESS_UNREACHABLE = "AddressUnreachable"
BLOCKED_BY_CLIENT = "BlockedByClient"
BLOCKED_BY_RESPONSE = "BlockedByResponse"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
class TimeSinceEpoch(float):
'''
UTC time in seconds, counted from January 1, 1970.
'''
def to_json(self) -> float:
return self
@classmethod
def from_json(cls, json: float) -> TimeSinceEpoch:
return cls(json)
def __repr__(self):
return 'TimeSinceEpoch({})'.format(super().__repr__())
class MonotonicTime(float):
'''
Monotonically increasing time in seconds since an arbitrary point in the past.
'''
def to_json(self) -> float:
return self
@classmethod
def from_json(cls, json: float) -> MonotonicTime:
return cls(json)
def __repr__(self):
return 'MonotonicTime({})'.format(super().__repr__())
class Headers(dict):
'''
Request / response headers as keys / values of JSON object.
'''
def to_json(self) -> dict:
return self
@classmethod
def from_json(cls, json: dict) -> Headers:
return cls(json)
def __repr__(self):
return 'Headers({})'.format(super().__repr__())
class ConnectionType(enum.Enum):
'''
The underlying connection technology that the browser is supposedly using.
'''
NONE = "none"
CELLULAR2G = "cellular2g"
CELLULAR3G = "cellular3g"
CELLULAR4G = "cellular4g"
BLUETOOTH = "bluetooth"
ETHERNET = "ethernet"
WIFI = "wifi"
WIMAX = "wimax"
OTHER = "other"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
class CookieSameSite(enum.Enum):
'''
Represents the cookie's 'SameSite' status:
https://tools.ietf.org/html/draft-west-first-party-cookies
'''
STRICT = "Strict"
LAX = "Lax"
NONE = "None"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
class CookiePriority(enum.Enum):
'''
Represents the cookie's 'Priority' status:
https://tools.ietf.org/html/draft-west-cookie-priority-00
'''
LOW = "Low"
MEDIUM = "Medium"
HIGH = "High"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
class CookieSourceScheme(enum.Enum):
'''
Represents the source scheme of the origin that originally set the cookie.
A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme.
This is a temporary ability and it will be removed in the future.
'''
UNSET = "Unset"
NON_SECURE = "NonSecure"
SECURE = "Secure"
def to_json(self):
return self.value
@classmethod
def from_json(cls, json):
return cls(json)
@dataclass
class ResourceTiming:
'''
Timing information for the request.
'''
#: Timing's requestTime is a baseline in seconds, while the other numbers are ticks in
#: milliseconds relatively to this requestTime.
request_time: float
#: Started resolving proxy.
proxy_start: float
#: Finished resolving proxy.
proxy_end: float
#: Started DNS address resolve.
dns_start: float
#: Finished DNS address resolve.
dns_end: float
#: Started connecting to the remote host.
connect_start: float
#: Connected to the remote host.
connect_end: float
#: Started SSL handshake.
ssl_start: float
#: Finished SSL handshake.
ssl_end: float
#: Started running ServiceWorker.
worker_start: float
#: Finished Starting ServiceWorker.
worker_ready: float
#: Started fetch event.
worker_fetch_start: float
#: Settled fetch event respondWith promise.
worker_respond_with_settled: float
#: Started sending request.
send_start: float
#: Finished sending request.
send_end: float
#: Time the server started pushing request.
push_start: float
#: Time the server finished pushing request.
push_end: float
#: Finished receiving response headers.
receive_headers_end: float
def to_json(self):
json = dict()
json['requestTime'] = self.request_time
json['proxyStart'] = self.proxy_start
json['proxyEnd'] = self.proxy_end
json['dnsStart'] = self.dns_start
json['dnsEnd'] = self.dns_end
json['connectStart'] = self.connect_start
json['connectEnd'] = self.connect_end
json['sslStart'] = self.ssl_start
json['sslEnd'] = self.ssl_end
json['workerStart'] = self.worker_start
json['workerReady'] = self.worker_ready
json['workerFetchStart'] = self.worker_fetch_start
json['workerRespondWithSettled'] = self.worker_respond_with_settled
json['sendStart'] = self.send_start
json['sendEnd'] = self.send_end
json['pushStart'] = self.push_start
json['pushEnd'] = self.push_end
json['receiveHeadersEnd'] = self.receive_headers_end
return json
@classmethod
def from_json(cls, json):
return cls(
request_time=float(json['requestTime']),
proxy_start=float(json['proxyStart']),
proxy_end=float(json['proxyEnd']),
dns_start=float(json['dnsSt
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
工具全部用python语言所写,算一个简易且有效的网页防篡改监测小工具,特别适合在hw的兄弟姐妹们零基础上手使用。本工具包含以下功能。 1.网页自定义轮询(可自动播放需要监测的网页) 2.防篡改监测(当监测到自定义敏感字时,会告警) 3.告警方式全面(邮件,声音,提示页) 4.邮件高可用(可设置多个发送邮件地址,一个超时,自动切换下一个) 5.配置方便(提示音、监测网站,敏感词目录,配置起来都很方便) 使用教程后面出(很简单),现在使用有疑问,可私信我。
资源推荐
资源详情
资源评论
收起资源包目录
网站轮询+防篡改监测告警系统 (689个子文件)
en-US-10-1.bdic 441KB
v8_context_snapshot.bin 582KB
icudtl.dat 10.14MB
chrome.dll 208.99MB
libGLESv2.dll 7.08MB
vk_swiftshader.dll 4.71MB
D3DCompiler_47.dll 4.69MB
mojo_core.dll 1.83MB
chrome_elf.dll 1.29MB
vulkan-1.dll 910KB
libEGL.dll 463KB
chrome_wer.dll 112KB
chromedriver.exe 13.65MB
selenium-manager.exe 3.3MB
chrome.exe 2.89MB
elevation_service.exe 1.67MB
chrome_pwa_launcher.exe 1.46MB
notification_helper.exe 1.29MB
chrome_proxy.exe 1.11MB
First Run 8B
INSTALLER 4B
findElements.js 53KB
isDisplayed.js 43KB
getAttribute.js 42KB
mutation-listener.js 2KB
webdriver_prefs.json 3KB
manifest.json 238B
vk_swiftshader_icd.json 106B
debug.log 97B
116.0.5845.96.manifest 226B
METADATA 7KB
music.mp3 183KB
music1.mp3 89KB
music2.mp3 43KB
nacl_irt_x86_64.nexe 4.19MB
resources.pak 7.48MB
ml.pak 1.04MB
ta.pak 1.03MB
kn.pak 1020KB
te.pak 975KB
chrome_200_percent.pak 958KB
hi.pak 948KB
bn.pak 909KB
gu.pak 895KB
mr.pak 873KB
th.pak 823KB
el.pak 776KB
ru.pak 711KB
uk.pak 711KB
bg.pak 708KB
ar.pak 684KB
sr.pak 664KB
fa.pak 628KB
chrome_100_percent.pak 623KB
ur.pak 622KB
am.pak 621KB
he.pak 555KB
ja.pak 517KB
vi.pak 495KB
lt.pak 465KB
fr.pak 464KB
lv.pak 463KB
hu.pak 462KB
sk.pak 449KB
pl.pak 447KB
fil.pak 445KB
cs.pak 441KB
ca.pak 438KB
de.pak 436KB
ro.pak 436KB
ko.pak 434KB
sl.pak 432KB
it.pak 427KB
hr.pak 427KB
es-419.pak 427KB
es.pak 427KB
pt-PT.pak 423KB
pt-BR.pak 420KB
tr.pak 418KB
sw.pak 409KB
da.pak 404KB
nl.pak 400KB
ms.pak 397KB
fi.pak 393KB
sv.pak 390KB
nb.pak 388KB
et.pak 387KB
af.pak 383KB
id.pak 378KB
zh-CN.pak 359KB
zh-TW.pak 356KB
en-US.pak 352KB
en-GB.pak 349KB
preloaded_data.pb 8KB
network.py 123KB
network.py 122KB
network.py 122KB
page.py 103KB
page.py 103KB
page.py 103KB
共 689 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
jinxya
- 粉丝: 1837
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功