Skip to content

Commit

Permalink
Extend social domains (#70)
Browse files Browse the repository at this point in the history
* Update process_batch.py

* Update process_batch.py

* Update setup.py

* Update spotting.py

* Update spotting.py
  • Loading branch information
MathiasExorde authored Nov 19, 2024
1 parent f1244b2 commit 19d571c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
44 changes: 41 additions & 3 deletions exorde/process_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ def merge_chunks(chunks: list[ProcessedItem]) -> ProcessedItem:
merged_item = None
return merged_item


SOCIAL_DOMAINS = [
"4chan",
"4chan.org",
"4channel.org",
"reddit.com",
"twitter.com",
Expand All @@ -203,7 +204,6 @@ def merge_chunks(chunks: list[ProcessedItem]) -> ProcessedItem:
"yt.co",
"lemmy.world",
"mastodon.social",
"mastodon",
"weibo.com",
"nostr.social",
"nostr.com",
Expand All @@ -214,7 +214,45 @@ def merge_chunks(chunks: list[ProcessedItem]) -> ProcessedItem:
"news.ycombinator.com",
"tradingview.com",
"followin.in",
"seekingalpha.io"
"seekingalpha.io",
"threads.net",
"telegram.org",
"tumblr.com",
"facebook.com",
"instagram.com",
"tiktok.com",
"whatsapp.com",
"9gag.com",
"techhaven.org",
"hey.xyz",
"dscvr.one",
"warpcast.com",
"discord.com",
"matrix.org",
"gab.com",
"parler.com",
"truthsocial.com",
"vk.com",
"vero.co",
"substack.com",
"8kun.top",
"ello.co",
"minds.com",
"mewe.com",
"livejournal.com",
"plurk.com",
"friendica.net",
"aminoapps.com",
"bitchute.com",
"gettr.com",
"odysee.com",
"poal.co",
"rumble.com",
"wimkin.com",
"twitch.tv",
"rocket.chat",
"snap.com",
"vidlii.com"
]

def get_source_type(item: ProtocolItem) -> SourceType:
Expand Down
4 changes: 4 additions & 0 deletions exorde/spotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ async def _get_alias() -> dict[str, str]:
"tradingview.com": "tradingview",
"followin.in": "followin",
"seekingalpha.io": "seekingalpha",
"threads.net":"threads",
"bsky.app":"bluesky",
"bsky.social":"bluesky",
"bluesky.social":"bluesky"
}
return json_data

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="exorde",
version="v2.5.15",
version="v2.5.16",
author="Exorde Labs",
author_email="hello@exordelabs.com",
description="The AI-based client to mine data and power the Exorde Network",
Expand Down

0 comments on commit 19d571c

Please sign in to comment.