Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@toddbirchard
Last active August 26, 2023 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddbirchard/5847b34da2a2aa2c75fd57b4e076a892 to your computer and use it in GitHub Desktop.
Save toddbirchard/5847b34da2a2aa2c75fd57b4e076a892 to your computer and use it in GitHub Desktop.
Collects locally stored images listed in report generated from `https://www.deadlinkchecker.com/`
"""Script configuration."""
from os import path
BASE_DIR = path.abspath(path.dirname(__file__))
# CSV Exported from `deadlinkchecker`
CSV_EXPORTED_BROKEN_LINKS = f"{BASE_DIR}/data/brokenlinks.csv"
# Local directories containing images
IMAGE_DIRECTORY_1 = path.abspath('/Users/username/Dropbox/Sites/_Personal/hackersslackers/')
IMAGE_DIRECTORY_2 = path.abspath('/Users/username/projects/hackers/content/images/')
# Local directory to save images to
IMAGE_OUTPUT_DIRECTORY = path.abspath("/Users/username/Desktop/python-collected-images/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment