mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-20 04:39:57 +08:00
Bug fix for href
This commit is contained in:
parent
c71eb1fb06
commit
31c53617de
2
ExecuteStage/.vscode/launch.json
vendored
2
ExecuteStage/.vscode/launch.json
vendored
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user