Skip to content
Snippets Groups Projects
Commit a4799055 authored by Jan Eggers's avatar Jan Eggers
Browse files

cursor Param in check_handle()

parent 8b61d398
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -10,7 +10,7 @@ authors = [ ...@@ -10,7 +10,7 @@ authors = [
maintainers = [ maintainers = [
{name = "Jan Eggers", email = "jan.eggers@hr.de"}, {name = "Jan Eggers", email = "jan.eggers@hr.de"},
] ]
version = "0.1.3" # Neue Versionsnummern für pip-Update version = "0.1.4" # Neue Versionsnummern für pip-Update
description = "Bluesky-Konten auf KI-Inhalte checken" description = "Bluesky-Konten auf KI-Inhalte checken"
requires-python = ">=3.8" requires-python = ">=3.8"
dependencies = [ dependencies = [
......
File added
...@@ -160,7 +160,7 @@ def fetch_user_posts(handle: str, limit: int = 100) -> list: ...@@ -160,7 +160,7 @@ def fetch_user_posts(handle: str, limit: int = 100) -> list:
return posts[:limit] return posts[:limit]
def check_handle(handle:str, limit:int = 20): def check_handle(handle:str, limit:int = 20, cursor = None):
# Konto und Anzahl der zu prüfenden Posts # Konto und Anzahl der zu prüfenden Posts
if handle == '': if handle == '':
return None return None
...@@ -168,7 +168,7 @@ def check_handle(handle:str, limit:int = 20): ...@@ -168,7 +168,7 @@ def check_handle(handle:str, limit:int = 20):
handle = handle[1:] handle = handle[1:]
# Fetch the most recent posts from the specified user # Fetch the most recent posts from the specified user
posts = fetch_user_posts(handle, limit) posts = fetch_user_posts(handle, limit, cursor)
if not posts: if not posts:
print(f"Keine Posts im Feed für Handle {handle}.") print(f"Keine Posts im Feed für Handle {handle}.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment