1
0

Google blogger
All checks were successful
Python Package / Package (push) Successful in 25s

This commit is contained in:
Jon Michael Aanes 2024-02-20 22:07:59 +01:00
parent 9533863330
commit 6ca8715a7c

View File

@ -16,28 +16,42 @@ class SocialSiteId(aenum.Enum):
''' '''
The great social website enum. The great social website enum.
''' '''
# Reddit-like
REDDIT = 1 # Should have been named REDDIT_SUBREDDIT REDDIT = 1 # Should have been named REDDIT_SUBREDDIT
REDDIT_USER = 22 REDDIT_USER = 22
REDDIT_SUBREDDIT = REDDIT REDDIT_SUBREDDIT = REDDIT
# Microblogging
TWITTER = 2 TWITTER = 2
RSS_FEED = 3
PAGE_WATCH = 4
LINKTREE_PAGE = 5
TWITCH = 6
WIKIDATA = 7
SONGKICK_ARTIST = 8
TUMBLR = 9
MASTODON_PAGE = 10 MASTODON_PAGE = 10
INSTAGRAM_PAGE = 11 INSTAGRAM_PAGE = 11
BLUESKY_PROFILE = 12361
BLUESKY_DID = 12409
THREADS_USERNAME = 11892
COHOST_PROFILE = 117203288
# Blogs and feeds
RSS_FEED = 3
PATREON_PAGE = 12 PATREON_PAGE = 12
TUMBLR = 9
SUBSTACK = 18
MEDIUM_BLOG = 3899
GOOGLE_BLOGGER_PAGE = 171186
# Video
TWITCH = 6
# Misc
PAGE_WATCH = 4
LINKTREE_PAGE = 5
WIKIDATA = 7
SONGKICK_ARTIST = 8
ARTSTATION_PAGE = 13 ARTSTATION_PAGE = 13
INPRNT_PAGE = 14 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
SUBSTACK = 18
MEDIUM_BLOG = 3899
ETSY_SHOP = 19 ETSY_SHOP = 19
KO_FI = 20 KO_FI = 20
BEHANCE_PAGE = 21 BEHANCE_PAGE = 21
@ -55,11 +69,7 @@ class SocialSiteId(aenum.Enum):
DEVIANT_ART_ACCOUNT = 7737 DEVIANT_ART_ACCOUNT = 7737
DANBOORU_ARTIST = 30 DANBOORU_ARTIST = 30
BANDCAMP_PROFILE = 3283 BANDCAMP_PROFILE = 3283
BLUESKY_PROFILE = 12361
BLUESKY_DID = 12409
THREADS_USERNAME = 11892
ITCH_IO_DEVELOPER = 8176 ITCH_IO_DEVELOPER = 8176
COHOST_PROFILE = 117203288
SOUNDCLOUD_ARTIST = 3040 SOUNDCLOUD_ARTIST = 3040
IGDB_GAME_ID = 5794 IGDB_GAME_ID = 5794
STEAM_APPLICATION_ID = 1733 STEAM_APPLICATION_ID = 1733
@ -157,6 +167,7 @@ WIKIDATA_PROPERTIES = {
SocialSiteId.KO_FI: WikidataInfo(None, 77949925), SocialSiteId.KO_FI: WikidataInfo(None, 77949925),
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),
# Weird internal # Weird internal
SocialSiteId.LINK_COLLECTION_PAGE: WikidataInfo(None, None), SocialSiteId.LINK_COLLECTION_PAGE: WikidataInfo(None, None),
@ -359,6 +370,9 @@ REGEXES = [
# Linked in # Linked in
(re_social_path_adv('linkedin.com', 'in', RE_ID), SocialSiteId.LINKEDIN_PERSONAL_PROFILE), (re_social_path_adv('linkedin.com', 'in', RE_ID), SocialSiteId.LINKEDIN_PERSONAL_PROFILE),
# Google Blogger
(re_social_subdomain('blogspot.com'), SocialSiteId.GOOGLE_BLOGGER_PAGE),
] ]
WELL_KNOWN_MASTODON_INSTANCES = frozenset({ WELL_KNOWN_MASTODON_INSTANCES = frozenset({