You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exception message given is not very clear; I recommend making it clear.
raise Exception("No match was found. We're done or something is broken")
I used the debugger to extract the failing css selector:
.my-class table tr:nth-child(2n) does not match the regex'([_0-9a-zA-Z-#.:*"\'\[\\]=]+)$ (This expression doesn't compile in my regex tools. The closest working regexp I could come to is:[_0-9a-zA-Z\-#.:*"\'\[\]=]+$).
I find that the regex is missing parenthesis captures.
With \(\) added the working regex expression does match the selector.
Suggested change the regexp here to:
pynliner/soupselect.py:98 [_0-9a-zA-Z\-#.:*"\'\[\]\(\)=]+$
The text was updated successfully, but these errors were encountered:
As far as the :nth-child() pseudo selector, pynliner currently doesn't support any pseudo selectors that take arguments. It's simply not smart enough yet 😞
The exception message given is not very clear; I recommend making it clear.
I used the debugger to extract the failing css selector:
.my-class table tr:nth-child(2n)
does not match the regex'([_0-9a-zA-Z-#.:*"\'\[\\]=]+)$
(This expression doesn't compile in my regex tools. The closest working regexp I could come to is:[_0-9a-zA-Z\-#.:*"\'\[\]=]+$
).I find that the regex is missing parenthesis captures.
With
\(\)
added the working regex expression does match the selector.Suggested change the regexp here to:
pynliner/soupselect.py:98
[_0-9a-zA-Z\-#.:*"\'\[\]\(\)=]+$
The text was updated successfully, but these errors were encountered: