Compare commits
5 Commits
c7a5b3eae1
...
a45308532e
Author | SHA1 | Date | |
---|---|---|---|
a45308532e | |||
864d1a8aa1 | |||
9fc6c778de | |||
039f8fbeac | |||
4084eb8305 |
|
@ -1,4 +1,8 @@
|
|||
# Socials-util
|
||||
<!--- WARNING ---!>
|
||||
<!--- THIS IS AN AUTO-GENERATED FILE ---!>
|
||||
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---!>
|
||||
|
||||
# Socials-util.
|
||||
|
||||
Python library for parsing and processing URLs of Social Media Sites.
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
"""Small utility for detecting social websites."""
|
||||
"""# Socials-util.
|
||||
|
||||
Python library for parsing and processing URLs of Social Media Sites.
|
||||
|
||||
Used by one-page-internet.
|
||||
"""
|
||||
|
||||
import re
|
||||
import urllib.parse
|
||||
|
@ -439,7 +444,7 @@ def determine_social_from_url_internally(
|
|||
|
||||
# Regexes
|
||||
for social_site_url_regex, social_site_id in REGEXES:
|
||||
if m := re.fullmatch(social_site_url_regex, url, re.I):
|
||||
if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE):
|
||||
groups = m.groups()
|
||||
username_or_id = groups[0] if len(groups) > 0 else None
|
||||
if username_or_id in DISALLOWED_IDENTIFIERS:
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.12'
|
||||
__version__ = '0.1.13'
|
||||
|
|
|
@ -178,7 +178,6 @@ PARSABLE_SOCIAL_IDS_COMBINED: list[tuple[str, object, str]] = [
|
|||
'solquiet',
|
||||
),
|
||||
('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'),
|
||||
|
||||
# Cara
|
||||
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
|
||||
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user