1
0

Support cara.app
All checks were successful
Test Python / Test (push) Successful in 21s

This commit is contained in:
Jon Michael Aanes 2024-06-08 16:59:38 +02:00
parent 416b1bff69
commit 9d5b251d00
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 26 additions and 16 deletions

View File

@ -26,6 +26,7 @@ class SocialSiteId(aenum.Enum):
BLUESKY_DID = 12409 BLUESKY_DID = 12409
THREADS_USERNAME = 11892 THREADS_USERNAME = 11892
COHOST_PROFILE = 117203288 COHOST_PROFILE = 117203288
PLURK = 32111
# Blogs and feeds # Blogs and feeds
RSS_FEED = 3 RSS_FEED = 3
@ -38,41 +39,43 @@ class SocialSiteId(aenum.Enum):
# Video # Video
TWITCH = 6 TWITCH = 6
# Artists portfolio
ARTSTATION_PAGE = 13
PIXIV_USER_ID = 5435
PIXIV_USER_NICKNAME = 31
INPRNT_PAGE = 14
BEHANCE_PAGE = 21
NEWGROUNDS_PAGE = 28
ARTSY_ARTIST = 2042
ARTNET_ARTIST = 3782
DEVIANT_ART_ACCOUNT = 7737
CARA_PROFILE = 35
# Socials aggregators
WIKIDATA = 7
CARRD_PAGE = 24
LINK_COLLECTION_PAGE = 29
DANBOORU_ARTIST = 30
# Misc # Misc
PAGE_WATCH = 4 PAGE_WATCH = 4
LINKTREE_PAGE = 5 LINKTREE_PAGE = 5
WIKIDATA = 7
SONGKICK_ARTIST = 8 SONGKICK_ARTIST = 8
ARTSTATION_PAGE = 13
INPRNT_PAGE = 14
FACEBOOK_PAGE = 15 FACEBOOK_PAGE = 15
EMAIL = 16 EMAIL = 16
JSON_LD = 17 # Similar to PAGE_WATCH, but focused on embedded microdata JSON_LD = 17 # Similar to PAGE_WATCH, but focused on embedded microdata
ETSY_SHOP = 19 ETSY_SHOP = 19
KO_FI = 20 KO_FI = 20
BEHANCE_PAGE = 21
TIKTOK_USER = 7085 TIKTOK_USER = 7085
PIXIV_USER_ID = 5435
PIXIV_USER_NICKNAME = 31
CARRD_PAGE = 24
YOUTUBE_CHANNEL_HANDLE = 26 YOUTUBE_CHANNEL_HANDLE = 26
YOUTUBE_CHANNEL_ID = 2397 YOUTUBE_CHANNEL_ID = 2397
VIMEO_CHANNEL = 27 VIMEO_CHANNEL = 27
NEWGROUNDS_PAGE = 28
ARTSY_ARTIST = 2042
ARTNET_ARTIST = 3782
LINK_COLLECTION_PAGE = 29
DEVIANT_ART_ACCOUNT = 7737
DANBOORU_ARTIST = 30
BANDCAMP_PROFILE = 3283 BANDCAMP_PROFILE = 3283
ITCH_IO_DEVELOPER = 8176 ITCH_IO_DEVELOPER = 8176
SOUNDCLOUD_ARTIST = 3040 SOUNDCLOUD_ARTIST = 3040
IGDB_GAME_ID = 5794 IGDB_GAME_ID = 5794
STEAM_APPLICATION_ID = 1733 STEAM_APPLICATION_ID = 1733
GITHUB_REPOSITORY = 364 GITHUB_REPOSITORY = 364
PLURK = 32111
LINKEDIN_PERSONAL_PROFILE = 6634 LINKEDIN_PERSONAL_PROFILE = 6634
# Browser bookmarks # Browser bookmarks
@ -178,6 +181,7 @@ WIKIDATA_PROPERTIES: dict[SocialSiteId | int, WikidataInfo] = {
SocialSiteId.BEHANCE_PAGE: WikidataInfo(None, 4880667), SocialSiteId.BEHANCE_PAGE: WikidataInfo(None, 4880667),
SocialSiteId.PLURK: WikidataInfo(None, 32111), SocialSiteId.PLURK: WikidataInfo(None, 32111),
SocialSiteId.GOOGLE_BLOGGER_PAGE: WikidataInfo(None, 171186), SocialSiteId.GOOGLE_BLOGGER_PAGE: WikidataInfo(None, 171186),
SocialSiteId.CARA_PROFILE: WikidataInfo(None, None),
# Weird internal # Weird internal
SocialSiteId.LINK_COLLECTION_PAGE: WikidataInfo(None, None), SocialSiteId.LINK_COLLECTION_PAGE: WikidataInfo(None, None),
SocialSiteId.PAGE_WATCH: WikidataInfo(None, None), SocialSiteId.PAGE_WATCH: WikidataInfo(None, None),
@ -396,6 +400,8 @@ REGEXES: list[tuple[str, object]] = [
), ),
# Google Blogger # Google Blogger
(re_social_subdomain('blogspot.com'), SocialSiteId.GOOGLE_BLOGGER_PAGE), (re_social_subdomain('blogspot.com'), SocialSiteId.GOOGLE_BLOGGER_PAGE),
# Cara
(re_social_path_adv('cara.app', RE_ID, RE_ANY_SUBPATH), SocialSiteId.CARA_PROFILE),
] ]
WELL_KNOWN_MASTODON_INSTANCES: frozenset[str] = frozenset( WELL_KNOWN_MASTODON_INSTANCES: frozenset[str] = frozenset(

View File

@ -178,6 +178,10 @@ 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
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),
] ]
NOT_PARSABLE = [ NOT_PARSABLE = [