delo na raindrop.io

master
janko 2023-08-27 18:54:12 +02:00
parent 53e7b17e1c
commit ce78dc767b
1 changed files with 24 additions and 0 deletions

24
raindrop.py 100644
View File

@ -0,0 +1,24 @@
from raindropio import API, Collection, Raindrop, CollectionRef
#from flask_oauthlib.client
raidrop_access_token = "f25eafb7-2d6f-4c50-9239-5b9703e29a9e"
api = API(raidrop_access_token)
l = []
collections = Collection.get_roots(api)
page = 0
while (items:=Raindrop.search(api, collection=CollectionRef.Unsorted, page=page)):
for item in items:
l.append(item.link)
page += 1
for col in collections:
page = 0
while (items:=Raindrop.search(api, collection=col, page=page)):
for item in items:
l.append(item.link)
page += 1
for link in l:
print(link)