Fix sintassi xpath.

This commit is contained in:
Emiliano Vavassori 2023-01-05 01:36:53 +01:00
parent 38a78860b0
commit 05533bf5e2
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Build(loaih.RemoteBuild):
path = str.join('/', path_arr)
print(f"DEBUG - Name: {name}, URL: {path}")
matching = etree.HTML(urllib.request.urlopen(path).read()).xpath(
f"//a[contains(@href, '{name}')/@href"
f"//a[contains(@href, '{name}')]/@href"
)
if len(matching) > 0: