Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix for full xpath support
Browse files Browse the repository at this point in the history
  • Loading branch information
ToasterUwU committed May 2, 2021
1 parent a35ee11 commit cc61cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anti-scalp.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class Requester():
self.selectors = json.load(f)

def get_by_selector(self, tree:_ElementTree, selector):
if selector.startswith("//"):
if selector.startswith("/"):
return tree.xpath(selector)
else:
selector = CSSSelector(selector)
Expand Down

0 comments on commit cc61cc4

Please sign in to comment.