Open
Conversation
- Add scripts/lib/mastodon.py with search_mastodon() and parse_mastodon_response() - Add MastodonItem dataclass to schema.py - Add normalize_mastodon_items() to normalize.py - Add compute_mastodon_engagement_raw() and score_mastodon_items() to score.py - Add dedupe_mastodon() to dedupe.py - Add is_mastodon_available() to env.py (always returns True - uses public APIs) - Add mastodon to SOURCE_TIERS and TIEBREAKER_BY_TYPE in query_type.py - Integrate Mastodon search in last30days.py main script - Update SKILL.md documentation with Mastodon source Mastodon is a federated social network that uses public APIs without authentication. Searches multiple popular instances: mastodon.social, mas.to, fosstodon.org, mstdn.social, techhub.social.
Owner
|
See my reply on #109 covering all your PRs. Can't commit to anything right now with the v3.0 refactor underway, but I promise I'll consider each one once it lands. Appreciate the work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Mastodon as a new data source to the last30days-skill project.
Mastodon is a federated social network that uses public APIs without requiring authentication. This integration searches multiple popular instances including mastodon.social, mas.to, fosstodon.org, mstdn.social, and techhub.social.
Changes
New Files
scripts/lib/mastodon.py- Mastodon search module with:search_mastodon()- searches multiple Mastodon instances via public APIsparse_mastodon_response()- parses API responses into normalized itemsModified Files
scripts/lib/schema.py- AddedMastodonItemdataclassscripts/lib/normalize.py- Addednormalize_mastodon_items()scripts/lib/score.py- Addedcompute_mastodon_engagement_raw()andscore_mastodon_items()scripts/lib/dedupe.py- Addeddedupe_mastodon()scripts/lib/env.py- Addedis_mastodon_available()(always returns True)scripts/lib/query_type.py- Added mastodon toSOURCE_TIERSandTIEBREAKER_BY_TYPEscripts/last30days.py- Integrated Mastodon search into the main pipelineSKILL.md- Updated documentation with Mastodon sourceFeatures
Testing
Version
Bumps version from 2.9.5 to 2.10.0