From 1950ffc54af8730bf21026a2a73db61c9225249e Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 4 Nov 2023 22:37:28 +0000 Subject: [PATCH] Start implementation of flickr API --- publish_flickr.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 publish_flickr.py diff --git a/publish_flickr.py b/publish_flickr.py new file mode 100644 index 0000000..fb35711 --- /dev/null +++ b/publish_flickr.py @@ -0,0 +1,19 @@ +import flickrapi + +api_key = +api_secret = + +flickr = flickrapi.FlickrAPI(api_key, api_secret) + +def upload(file_data: dict): + flickr.upload( + filename = file_data.path, + title = file_data.title, + description = file_data.description, + tags = file_data.tags.join(" "), + is_public = 1, + format = rest + ) + +def prepareTags(tags: list): + return None \ No newline at end of file