rms-support-letter.github.io/import-from-codeberg.py

15 lines
433 B
Python
Raw Permalink Normal View History

2021-03-25 20:33:30 +01:00
import requests
2021-04-02 15:20:56 +02:00
from _importer import parse_and_import_signature
2021-03-25 20:33:30 +01:00
page = 1
while True:
comments = requests.get(f"https://codeberg.org/api/v1/repos/rms-support-letter/rms-support-letter/issues/comments?page={page}").json()
if not comments:
break
for comment in comments:
author = comment["user"]["login"]
content = comment["body"]
2021-04-02 15:20:56 +02:00
parse_and_import_signature(content, author)
2021-03-25 20:33:30 +01:00
page += 1