Skip to content

Invalid regex #13

@matthewdeanmartin

Description

@matthewdeanmartin

Looks like the regex has things newer versions of python won't accept.

I'm using python 3.14, fwiw

C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:13: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  'http(s)?://(www\.)?(facebook|fb)\.com/[A-z0-9_\-\.]+/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:17: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  'http(s)?://(www\.)?github\.com/[A-z0-9_-]+/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:22: SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\w"? A raw string is also an option.
  'http(s)?://([\w]+\.)?linkedin\.com/in/(A-z0-9_-)+/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:23: SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\w"? A raw string is also an option.
  'http(s)?://([\w]+\.)?linkedin\.com/pub/[A-z0-9_-]+(\/[A-z 0-9]+){3}/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:25: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  'http(s)?://(www\.)?linkedin\.com/company/(A-z0-9_-)+/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:29: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  'http(s)?://(.*\.)?twitter\.com\/[A-z0-9_]+/?',
C:\github\skip_trace\.venv\Lib\site-packages\socials\socials.py:32: SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\w"? A raw string is also an option.
  EMAIL_REGEX = '(mailto:)?[\w\.-]+@[\w\.-]+'
INFO: Fetching metadata from https://pypi.org/pypi/bitrab/json

Thanks for creating this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions