Compare commits
No commits in common. "a45308532e9ea2f09b211faf5ca3fdc920e46171" and "c7a5b3eae151b2393f699b74e0c8e5ba55cf7a39" have entirely different histories.
a45308532e
...
c7a5b3eae1
|
@ -1,8 +1,4 @@
|
||||||
<!--- WARNING ---!>
|
# Socials-util
|
||||||
<!--- 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.
|
Python library for parsing and processing URLs of Social Media Sites.
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
"""# Socials-util.
|
"""Small utility for detecting social websites."""
|
||||||
|
|
||||||
Python library for parsing and processing URLs of Social Media Sites.
|
|
||||||
|
|
||||||
Used by one-page-internet.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
@ -444,7 +439,7 @@ def determine_social_from_url_internally(
|
||||||
|
|
||||||
# Regexes
|
# Regexes
|
||||||
for social_site_url_regex, social_site_id in REGEXES:
|
for social_site_url_regex, social_site_id in REGEXES:
|
||||||
if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE):
|
if m := re.fullmatch(social_site_url_regex, url, re.I):
|
||||||
groups = m.groups()
|
groups = m.groups()
|
||||||
username_or_id = groups[0] if len(groups) > 0 else None
|
username_or_id = groups[0] if len(groups) > 0 else None
|
||||||
if username_or_id in DISALLOWED_IDENTIFIERS:
|
if username_or_id in DISALLOWED_IDENTIFIERS:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.13'
|
__version__ = '0.1.12'
|
|
@ -178,6 +178,7 @@ PARSABLE_SOCIAL_IDS_COMBINED: list[tuple[str, object, str]] = [
|
||||||
'solquiet',
|
'solquiet',
|
||||||
),
|
),
|
||||||
('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'),
|
('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'),
|
||||||
|
|
||||||
# Cara
|
# Cara
|
||||||
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
|
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
|
||||||
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),
|
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user