this repo has no description
1import logging 2 3from atproto import Client, models 4import apsw 5import apsw.ext 6 7from . import BaseFeed 8 9# https://bsky.app/profile/nora.zone/post/3kv35hqi4a22b 10TARGET_QUOTE_URI = 'at://did:plc:4qqizocrnriintskkh6trnzv/app.bsky.feed.post/3kv35hqi4a22b' 11 12class NoraZoneInteresting(BaseFeed): 13 FEED_URI = 'at://did:plc:4nsduwlpivpuur4mqkbfvm6a/app.bsky.feed.generator/nz-interesting' 14 15 def __init__(self): 16 self.client = Client('https://public.api.bsky.app') 17 18 def process_commit(self, commit): 19 pass 20 21 def commit_changes(self): 22 pass 23 24 def serve_feed(self, limit, cursor, langs): 25 quotes = self.client.app.bsky.feed.get_quotes( 26 models.AppBskyFeedGetQuotes.Params( 27 uri = TARGET_QUOTE_URI, 28 limit = limit, 29 cursor = cursor, 30 ) 31 ) 32 return { 33 'cursor': quotes.cursor, 34 'feed': [dict(post=post.uri) for post in quotes.posts], 35 }