webtoolkit 0.1.55__tar.gz → 0.1.57__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.55 → webtoolkit-0.1.57}/PKG-INFO +1 -1
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/pyproject.toml +1 -1
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/baseurl.py +2 -2
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/remoteserver.py +5 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/remoteurl.py +1 -4
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/LICENSE +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/README.md +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/__init__.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/contentinterface.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/contentlinkparser.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/contentmoderation.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/contenttext.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/crawlers/__init__.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/crawlers/crawlerinterface.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/crawlers/requestscrawler.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/domaincache.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/__init__.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/defaulturlhandler.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlerchannelodysee.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlerchannelyoutube.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlerhttppage.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlerinterface.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlers.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlervideoodysee.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/handlers/handlervideoyoutube.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/pages.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/request.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/response.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/statuses.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/__init__.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/__init__.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/codeproject.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/firebog.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/geekwirecom.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/githubcom.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/hackernews.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/instance.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/opmlfile.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/reddit.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/returndislike.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/robotstxtcom.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/thehill.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/warhammercommunity.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fake/youtube.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fakeinternet.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fakeinternetcontents.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/fakeresponse.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/tests/mocks.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/urllocation.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/utils/dateutils.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/utils/logger.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/utils/memorychecker.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/webconfig.py +0 -0
- {webtoolkit-0.1.55 → webtoolkit-0.1.57}/webtoolkit/webtools.py +0 -0
|
@@ -550,7 +550,7 @@ class BaseUrl(ContentInterface):
|
|
|
550
550
|
request_data["crawler_type"] = type(request_data["crawler_type"]).__name__
|
|
551
551
|
all_properties.append({"name": "Request", "data": request_data})
|
|
552
552
|
|
|
553
|
-
response_data = self.get_response_data()
|
|
553
|
+
response_data = self.get_response_data(streams)
|
|
554
554
|
all_properties.append({"name": "Response", "data": response_data})
|
|
555
555
|
if response:
|
|
556
556
|
raw_headers_data = response.get_headers()
|
|
@@ -639,7 +639,7 @@ class BaseUrl(ContentInterface):
|
|
|
639
639
|
|
|
640
640
|
return response_data
|
|
641
641
|
|
|
642
|
-
def get_response_data(self):
|
|
642
|
+
def get_response_data(self, streams):
|
|
643
643
|
"""
|
|
644
644
|
Returns response data
|
|
645
645
|
Easy digestible response data
|
|
@@ -235,6 +235,7 @@ class RemoteServer(object):
|
|
|
235
235
|
return responses
|
|
236
236
|
|
|
237
237
|
def get_response(all_properties):
|
|
238
|
+
"""
|
|
238
239
|
responses = RemoteServer.get_responses(all_properties)
|
|
239
240
|
if not responses:
|
|
240
241
|
return
|
|
@@ -254,6 +255,10 @@ class RemoteServer(object):
|
|
|
254
255
|
# return first found response
|
|
255
256
|
for url in responses:
|
|
256
257
|
return responses[url]
|
|
258
|
+
"""
|
|
259
|
+
response_data = RemoteServer.read_properties_section("Response", all_properties)
|
|
260
|
+
response = json_to_response(response_data)
|
|
261
|
+
return response
|
|
257
262
|
|
|
258
263
|
def encode(data):
|
|
259
264
|
return urllib.parse.quote(data, safe="")
|
|
@@ -81,10 +81,7 @@ class RemoteUrl(ContentInterface):
|
|
|
81
81
|
if not responses:
|
|
82
82
|
return
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
return responses["Default"]
|
|
86
|
-
for url in responses:
|
|
87
|
-
return responses[url]
|
|
84
|
+
return RemoteServer.get_response(self.all_properties)
|
|
88
85
|
|
|
89
86
|
def get_text(self):
|
|
90
87
|
"""Provides URL response text. Useful if link provides one response."""
|
|
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
|