Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning: invalid escape sequence '\/' #9

Open
albertopasqualetto opened this issue Oct 21, 2024 · 0 comments
Open

SyntaxWarning: invalid escape sequence '\/' #9

albertopasqualetto opened this issue Oct 21, 2024 · 0 comments

Comments

@albertopasqualetto
Copy link
Owner

albertopasqualetto commented Oct 21, 2024

return re.search('dp\/(.*?)(?=\/|\?)', url).group(1)

Warning from the above line, this should be the reason (so from python 3.12) and the solution seems to be using raw strings r"regex-here" but needs to be tested both on python 3.12 and older versions since they are still used a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant