mastodon-crawler: реализация — crawler/mastodon_crawler.py, источники mastodon (base_url+hashtag/lookup_acct), интеграция crawl_sources

- crawler/mastodon_crawler.py: публичная/хэштег/аккаунт-ленты (Mastodon API, httpx),
  пагинация max_id (первый запуск — свежая страница), дедуп по status.id, состояние
  mastodon_state (last_id, ошибки→dead), runs как mastodon:<slug>, CLI --all/--source/--dry-run
- sources.py: валидация crawler=mastodon + base_url, sync/CRUD/normalize новых полей,
  parse_address_mastodon (инстанс/тег/аккаунт), delete_source чистит mastodon_state
- sources.yaml: 6 примеров mastodon-источников (enabled: false)
- classifier/keywords.py: SOURCE_RULES для mastodon-источников
- crawl_sources.py: --crawler mastodon
- db/schema.sql+db.py: колонки base_url/hashtag/lookup_acct в sources, таблица mastodon_state
  (db/ в .gitignore — применяется локально)
- tasks.md: все [x]; STATUS.md обновлён
This commit is contained in:
kpa39l
2026-10-03 13:35:07 +00:00
parent ed9d5b9370
commit 4b641774b8
7 changed files with 535 additions and 44 deletions
+93 -14
View File
@@ -81,6 +81,31 @@
priority: P1
enabled: true
notes: git/devops — смежный с linux
- slug: huggingface-blog
name: Hugging Face Blog
url: https://huggingface.co/blog
channel: null
crawler: rss
feed_url: https://huggingface.co/blog/feed.xml
direction: llm
lang: en
priority: P1
enabled: true
own: false
notes: официальный блог HF — релизы моделей, гайды fine-tuning, новости платформы
- slug: huggingface-papers
name: Hugging Face Daily Papers
url: https://huggingface.co/papers
channel: null
crawler: rss
feed_url: https://papers.takara.ai/api/feed
direction: llm
lang: en
priority: P1
enabled: true
own: false
notes: ежедневная кураторская лента научных статей (arXiv-препринты, комментарии
сообщества) — официальный /papers.rss 404, используется сторонний papers.takara.ai
- slug: krxnotes
name: KRX Notes
url: https://t.me/krxnotes
@@ -128,6 +153,32 @@
priority: P1
enabled: true
own: false
- slug: fosstodon-selfhosting
name: Fosstodon
url: https://fosstodon.org/tags/selfhosting
channel: null
crawler: mastodon
base_url: https://fosstodon.org
hashtag: selfhosting
feed_url: null
direction: tech
lang: en
priority: P1
enabled: false
own: false
- slug: mastodon-social-linux
name: mastodon.social
url: https://mastodon.social/tags/linux
channel: null
crawler: mastodon
base_url: https://mastodon.social
hashtag: linux
feed_url: null
direction: linux
lang: en
priority: P1
enabled: false
own: false
- slug: omarchy
name: omarchy
url: https://omarchy.org/
@@ -139,30 +190,58 @@
priority: P1
enabled: false
own: false
- slug: huggingface-blog
name: Hugging Face Blog
url: https://huggingface.co/blog
- slug: sebastian-raschka
name: Sebastian Raschka (fedi)
url: https://mastodon.social/@SebRaschka
channel: null
crawler: rss
feed_url: https://huggingface.co/blog/feed.xml
crawler: mastodon
base_url: https://mastodon.social
lookup_acct: SebRaschka@mastodon.social
feed_url: null
direction: llm
lang: en
priority: P1
enabled: true
enabled: false
own: false
notes: официальный блог HF — релизы моделей, гайды fine-tuning, новости платформы
- slug: huggingface-papers
name: Hugging Face Daily Papers
url: https://huggingface.co/papers
- slug: simon-willison
name: Simon Willison (fedi)
url: https://fedi.simonwillison.net/@simon
channel: null
crawler: rss
feed_url: https://papers.takara.ai/api/feed
crawler: mastodon
base_url: https://fedi.simonwillison.net
lookup_acct: simon@fedi.simonwillison.net
feed_url: null
direction: llm
lang: en
priority: P1
enabled: true
enabled: false
own: false
- slug: stroughtonsmith
name: Steve Troughton-Smith (fedi)
url: https://mastodon.social/@stroughtonsmith
channel: null
crawler: mastodon
base_url: https://mastodon.social
lookup_acct: stroughtonsmith@mastodon.social
feed_url: null
direction: llm
lang: en
priority: P1
enabled: false
own: false
- slug: terence-eden
name: Terence Eden (fedi)
url: https://mastodon.social/@Edent
channel: null
crawler: mastodon
base_url: https://mastodon.social
lookup_acct: Edent@mastodon.social
feed_url: null
direction: llm
lang: en
priority: P1
enabled: false
own: false
notes: ежедневная кураторская лента научных статей (arXiv-препринты, комментарии сообщества) — официальный /papers.rss 404, используется сторонний papers.takara.ai
# Пример (включить, раскомментировав и поправив direction/приоритет):
# - slug: opennet