Skip to main content

Flickr Mirroring

  • This project develops a command-line tool to mirror Flickr photo.

Requirements

Installation

  • Install from PyPI database:
# Setup a binary directory to install our Flickr mirroring utility
$ mkdir -p ~/.local/bin/intek_flickr_mirroring
$ cd ~/.local/bin/intek_flickr_mirroring

# Setup a Python virtual environment
$ pipenv shell --three
Creating a virtualenv for this project...
Pipfile: /home/intek/.local/bin/intek_flickr_mirroring/Pipfile
Using /usr/local/bin/python3.7 (3.7.4) to create virtualenv...
⠦ Creating virtual environment...Using base prefix '/usr/local'
New python executable in /home/intek/.virtualenvs/intek_flickr_mirroring-wqvphFZ0/bin/python3.7
Also creating executable in /home/intek/.virtualenvs/intek_flickr_mirroring-wqvphFZ0/bin/python
Installing setuptools, pip, wheel...done.
Running virtualenv with interpreter /usr/local/bin/python3.7

✔ Successfully created virtual environment!
Virtualenv location: /home/intek/.virtualenvs/intek_flickr_mirroring-wqvphFZ0
Creating a Pipfile for this project...
Launching subshell in virtual environment...
 . /home/intek/.virtualenvs/intek_flickr_mirroring-wqvphFZ0/bin/activate

# Install our Flickr mirroring utility
(intek_flickr_mirroring) $ pipenv install Flickr-nqcuong96
Installing Flickr-nqcuong96...
Adding Flickr-nqcuong96 to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
✔ Success!
Updated Pipfile.lock (96799b)!
Installing dependencies from Pipfile.lock (96799b)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 38/38 — 00:00:56

Usage

  • Using Flickr Mirroring to like other CLI tools:
# Execute our Bash script
(intek_flickr_mirroring) $ mirror_flickr --help
usage: __main__.py [-h] --username USERNAME [--cache-path CACHE_PATH]
                   [--consumer-key CONSUMER_KEY]
                   [--consumer-secret CONSUMER_SECRET] [--save-api-keys]
                   [--image-only] [--info-only] [--info-level {0,1,2}]
                   [--fifo] [--lifo]

This script support several features such as, to allow our users to mirror
images only, information (i.e.,title, description, comments) only, or both.

optional arguments:
  -h, --help            show this help message and exit

  --username USERNAME   username of the account of a user on Flickr to mirror
                        their photostream

  --cache-path CACHE_PATH
                        specify the absolute path where the photos downloaded
                        from Flickr need to be cached

  --consumer-key CONSUMER_KEY
                        a unique string used by the Consumer to identify
                        themselves to the Flickr API

  --consumer-secret CONSUMER_SECRET
                        a secret used by the Consumer to establish ownership
                        of the Consumer Key

  --save-api-keys       specify whether to save the Flickr API keys for
                        further usage

  --image-only          specify whether the script must only download
                        photos'images

  --info-only           specify whether the script must only download
                        photos'information

  --info-level {0,1,2}  specify the level of information of a photo to fetch
                        (value between 0 and 2)

  --fifo                specify the First-In First-Out method to mirror the
                        user's photostream, from the oldest uploaded photo to
                        the earliest

  --lifo                specify the Last-In First-Out method to mirror the
                        user's photostream, from the earliest uploaded photo
                        to the oldest (default option)

Metadata

Release files for Flickr-nqcuong96 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flickr-nqcuong96 1.1.2
File Size Uploaded
Flickr-nqcuong96-1.1.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flickr-nqcuong96 1.1.2
File Interpreter ABI Platform
Flickr_nqcuong96-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / Flickr-nqcuong96-1.1.2.tar.gz

Download URL Flickr-nqcuong96-1.1.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f3ba18d8d8d6abc3a97aed7a42c73783ee8e718701c3a2744b6cc9f4625ad096
BLAKE2b-256 checksum
How to use checksums
b2f6d08acea0dc19cd94a0f82488b44672ab58a54f1c5c645399aaf7bdefb92d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / Flickr_nqcuong96-1.1.2-py3-none-any.whl

Download URL Flickr_nqcuong96-1.1.2-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1610322c8b5f94eba1dc6d7326ba1b16c5136735ab55924f58b1b6fcf6d72c5
BLAKE2b-256 checksum
How to use checksums
c71841676f8e3109009d7cd34e3096a8f22e257647b1cb4e181cca03db1f81bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page