refactor: rename scraping functions for consistency and improve data handling

This commit is contained in:
Vxrtrauter
2026-03-04 19:11:31 +01:00
parent 90124fd9c8
commit 34a50e1a1b
5 changed files with 48 additions and 105 deletions
+2 -2
View File
@@ -20,12 +20,12 @@ def format_data(data):
return post_titles, post_links, post_author, post_seeders, post_leechers
def format_data_m0nkrus(data):
def format_data_minimal(data):
post_author = [post["author"] for post in data]
post_titles = [post["title"] for post in data]
post_links = [post["url"] for post in data]
return post_titles, post_links, post_author
return post_author, post_titles, post_links