From 31c53617de6a55271000ae0fa4ed7d4269e5f9f8 Mon Sep 17 00:00:00 2001 From: naibo Date: Wed, 19 Jul 2023 11:55:21 +0800 Subject: [PATCH] Bug fix for href --- ExecuteStage/.vscode/launch.json | 2 +- ExecuteStage/easyspider_executestage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ExecuteStage/.vscode/launch.json b/ExecuteStage/.vscode/launch.json index 7065272..6639b1a 100644 --- a/ExecuteStage/.vscode/launch.json +++ b/ExecuteStage/.vscode/launch.json @@ -12,7 +12,7 @@ "justMyCode": false, // "args": ["--id", "[7]", "--read_type", "remote", "--headless", "0"] // "args": ["--id", "[9]", "--read_type", "remote", "--headless", "0", "--saved_file_name", "YOUTUBE"] - "args": ["--id", "[83]", "--headless", "0", "--user_data", "1", "--keyboard", "0"] + "args": ["--id", "[7]", "--headless", "0", "--user_data", "1", "--keyboard", "0"] } ] } \ No newline at end of file diff --git a/ExecuteStage/easyspider_executestage.py b/ExecuteStage/easyspider_executestage.py index b570039..3bdad90 100644 --- a/ExecuteStage/easyspider_executestage.py +++ b/ExecuteStage/easyspider_executestage.py @@ -1563,7 +1563,7 @@ class BrowserThread(Thread): if relativeXPath.find("/@href") >= 0 or relativeXPath.find("/text()") >= 0 or relativeXPath.find("::text()") >= 0: content_type = "" elif p["nodeType"] == 2: - content_type = "/@href" + content_type = "//@href" elif p["contentType"] == 1: content_type = "/text()" elif p["contentType"] == 0: