Fix sintassi xpath.
This commit is contained in:
parent
38a78860b0
commit
05533bf5e2
|
@ -126,7 +126,7 @@ class Build(loaih.RemoteBuild):
|
||||||
path = str.join('/', path_arr)
|
path = str.join('/', path_arr)
|
||||||
print(f"DEBUG - Name: {name}, URL: {path}")
|
print(f"DEBUG - Name: {name}, URL: {path}")
|
||||||
matching = etree.HTML(urllib.request.urlopen(path).read()).xpath(
|
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:
|
if len(matching) > 0:
|
||||||
|
|
Loading…
Reference in New Issue