Initial commit.
This commit is contained in:
parent
fe7428fb19
commit
43fc0c46c2
10 changed files with 387 additions and 3 deletions
46
fgg
Executable file
46
fgg
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#!/bin/env python
|
||||
|
||||
# fgg - A free gallery generator for static site generators like Hugo, Jekyll,
|
||||
# Nikola etc. using Flickr as data source.
|
||||
#
|
||||
# This is a port from a prototype (fgg.rb) written in Ruby I have running since
|
||||
# some years.
|
||||
|
||||
# Copyright (c) 2022 Johannes Findeisen
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is furnished
|
||||
# to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||
# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# Flickr API documentation
|
||||
# https://www.flickr.com/services/api/
|
||||
# https://github.com/alexis-mignon/python-flickr-api
|
||||
# https://github.com/alexis-mignon/python-flickr-api/wiki/API-reference
|
||||
# This will become the next generation of fgg!
|
||||
|
||||
import flickr_api
|
||||
import os
|
||||
|
||||
print("Next-gen fgg written in Python... ;)")
|
||||
|
||||
flickr_api_key = os.environ['FLICKR_API_KEY']
|
||||
flickr_api_secret = os.environ['FLICKR_API_SECRET']
|
||||
|
||||
print(flickr_api_key)
|
||||
print(flickr_api_secret)
|
||||
|
||||
flickr_api.set_keys(api_key=flickr_api_key, api_secret=flickr_api_secret)
|
||||
Loading…
Add table
Add a link
Reference in a new issue