Skip to main content

A tool to get a number of flickr uploads or single pictures and create markdown strings out of them

Project description

Fetches last Flickr uploads and convert them to markdown syntax for using it in a markdown blogging environment. For example with pelican.:

Usage: flickr2markdown [OPTIONS]

Options:
  --version                    Show the version and exit.
  --user TEXT                  Flickr Username
  --count INTEGER              Number of last pictures to fetch
  --id TEXT                    ID of a single image
  --size [small|medium|large]  Image size: small, medium, large
  --help                       Show this message and exit.

Installation

pip install flickr2markdown

Config

The config is needed for the flickr API key. It needs to be located in ~/.flickr2markdown. You can obtain a flickr API key here.

Example:

[API]
key = abc123

[Defaults]
user = marvinxsteadfast
size = large

Example

Input:

$ flickr2markdown --user marvinxsteadfast --count 5

Output:

[![Rodin](https://farm2.staticflickr.com/1531/26272005452_7bd8175256_b.jpg)](https://www.flickr.com/photos/8810721@N07/26272005452/)
[![Rodin](https://farm2.staticflickr.com/1548/25761633043_a703e1099a_b.jpg)](https://www.flickr.com/photos/8810721@N07/25761633043/)
[![Paris](https://farm2.staticflickr.com/1485/26364375095_e6bff59174_b.jpg)](https://www.flickr.com/photos/8810721@N07/26364375095/)
[![Paris](https://farm2.staticflickr.com/1645/26091495910_babf3f132a_b.jpg)](https://www.flickr.com/photos/8810721@N07/26091495910/)
[![Paris](https://farm2.staticflickr.com/1560/25761607033_09174223dc_b.jpg)](https://www.flickr.com/photos/8810721@N07/25761607033/)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flickr2markdown-0.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file flickr2markdown-0.2.tar.gz.

File metadata

File hashes

Hashes for flickr2markdown-0.2.tar.gz
Algorithm Hash digest
SHA256 020abfc4472da7ce078f9dacf67b9bf78f170adee56b0d457477453795b0a0b6
MD5 aa24b5e41b2748aba6e73db1815623aa
BLAKE2b-256 3c0796ecfd780747e4e8baef47d43cc9a5994a0b95ac828b0e3f1654b194ec0c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page