webtoolkit 0.1.66__tar.gz → 0.1.68__tar.gz
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.
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/PKG-INFO +4 -3
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/pyproject.toml +2 -2
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/remoteserver.py +1 -1
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/request.py +7 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/LICENSE +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/README.md +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/baseurl.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/contentinterface.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/contentlinkparser.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/contentmoderation.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/contenttext.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/crawlers/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/crawlers/crawlerinterface.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/crawlers/requestscrawler.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/domaincache.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/defaulturlhandler.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlerchannelodysee.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlerchannelyoutube.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlerhttppage.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlerinterface.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlers.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlervideoodysee.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/handlers/handlervideoyoutube.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/pages.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/remoteurl.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/response.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/statuses.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/codeproject.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/firebog.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/geekwirecom.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/githubcom.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/hackernews.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/instance.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/opmlfile.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/reddit.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/returndislike.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/robotstxtcom.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/thehill.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/warhammercommunity.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fake/youtube.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fakeinternet.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fakeinternetcontents.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/fakeresponse.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/tests/mocks.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/urllocation.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/utils/__init__.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/utils/dateutils.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/utils/emailreader.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/utils/logger.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/utils/memorychecker.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/webconfig.py +0 -0
- {webtoolkit-0.1.66 → webtoolkit-0.1.68}/webtoolkit/webtools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: webtoolkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.68
|
|
4
4
|
Summary: Web tools and interfaces for Internet data processing.
|
|
5
5
|
License: GPL3
|
|
6
6
|
Author: Iwan Grozny
|
|
@@ -12,8 +12,9 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
16
|
Requires-Dist: beautifulsoup4 (>=4.13.5,<5.0.0)
|
|
16
|
-
Requires-Dist: brutefeedparser (>=0.
|
|
17
|
+
Requires-Dist: brutefeedparser (>=1.0.0,<2.0.0)
|
|
17
18
|
Requires-Dist: lxml (>=5.4.0,<6.0.0)
|
|
18
19
|
Requires-Dist: psutil
|
|
19
20
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "webtoolkit"
|
|
6
|
-
version = "0.1.
|
|
6
|
+
version = "0.1.68"
|
|
7
7
|
description = "Web tools and interfaces for Internet data processing."
|
|
8
8
|
authors = ["Iwan Grozny <renegat@renegat0x0.ddns.net>"]
|
|
9
9
|
license = "GPL3"
|
|
@@ -15,7 +15,7 @@ python-dateutil = "^2.8.2"
|
|
|
15
15
|
tldextract = "^5.1.2"
|
|
16
16
|
beautifulsoup4 = "^4.13.5"
|
|
17
17
|
lxml = "^5.4.0"
|
|
18
|
-
brutefeedparser="^0.
|
|
18
|
+
brutefeedparser="^1.0.0"
|
|
19
19
|
pytz = "^2024.2"
|
|
20
20
|
psutil="*"
|
|
21
21
|
url-cleaner="*"
|
|
@@ -192,7 +192,7 @@ class RemoteServer(object):
|
|
|
192
192
|
print(str(E))
|
|
193
193
|
return
|
|
194
194
|
|
|
195
|
-
if "success" in json_obj and not json_obj["success"]:
|
|
195
|
+
if json_obj and "success" in json_obj and not json_obj["success"]:
|
|
196
196
|
print("Url:{} Remote error. Not a success".format(link_call))
|
|
197
197
|
return
|
|
198
198
|
return json_obj
|
|
@@ -34,6 +34,7 @@ class PageRequestObject(object):
|
|
|
34
34
|
respect_robots=None,
|
|
35
35
|
accept_types=None,
|
|
36
36
|
bytes_limit=None,
|
|
37
|
+
freshness_interval_s=None, # seconds
|
|
37
38
|
http_proxy=None,
|
|
38
39
|
https_proxy=None,
|
|
39
40
|
settings=None,
|
|
@@ -54,6 +55,7 @@ class PageRequestObject(object):
|
|
|
54
55
|
self.respect_robots = respect_robots
|
|
55
56
|
self.accept_types = accept_types
|
|
56
57
|
self.bytes_limit = bytes_limit
|
|
58
|
+
self.freshness_interval_s = freshness_interval_s
|
|
57
59
|
self.http_proxy = http_proxy
|
|
58
60
|
self.https_proxy = https_proxy
|
|
59
61
|
self.settings = settings
|
|
@@ -125,6 +127,8 @@ class PageRequestObject(object):
|
|
|
125
127
|
return False
|
|
126
128
|
if self.bytes_limit != other.bytes_limit:
|
|
127
129
|
return False
|
|
130
|
+
if self.freshness_interval_s != other.freshness_interval_s:
|
|
131
|
+
return False
|
|
128
132
|
if self.http_proxy != other.http_proxy:
|
|
129
133
|
return False
|
|
130
134
|
if self.https_proxy != other.https_proxy:
|
|
@@ -176,6 +180,8 @@ def request_to_json(request):
|
|
|
176
180
|
json["accept_types"] = request.accept_types
|
|
177
181
|
if request.bytes_limit is not None:
|
|
178
182
|
json["bytes_limit"] = request.bytes_limit
|
|
183
|
+
if request.freshness_interval_s is not None:
|
|
184
|
+
json["freshness_interval_s"] = request.freshness_interval_s
|
|
179
185
|
if request.http_proxy is not None:
|
|
180
186
|
json["http_proxy"] = request.http_proxy
|
|
181
187
|
if request.https_proxy is not None:
|
|
@@ -233,6 +239,7 @@ def json_to_request(json_data):
|
|
|
233
239
|
request.bytes_limit = json_data.get("bytes_limit")
|
|
234
240
|
if request.bytes_limit is not None:
|
|
235
241
|
request.bytes_limit = int(request.bytes_limit)
|
|
242
|
+
request.freshness_interval_s = json_data.get("freshness_interval_s")
|
|
236
243
|
request.http_proxy = json_data.get("http_proxy")
|
|
237
244
|
request.https_proxy = json_data.get("https_proxy")
|
|
238
245
|
request.settings = json_data.get("settings")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|