social-photos/publish_flickr.py

19 lines
393 B
Python
Raw Normal View History

2023-11-04 22:37:28 +00:00
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