Thanks to visit codestin.com
Credit goes to github.com

Skip to content

krygersenken/ExtensionScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extension Scraper

V1.0.0 (updates incoming)

Scraper Scripts

  • Written in Python

  • These scrapers will allow the user to search in set source directories (all folders and subfolders in the source directory) for files with a set extension (and/or EXIF info).

  • The files matching the extension will either be moved or copied to a destination directory

  • The files will be renamed in the date and time of the ext

pyPhotographScraper.py:

  • Check exif data if a jpg otherwise ignore if stated in argument

  • The images will be stored in a directory structure starting with make and then model:

    • /make/
      • /model/
        • 2012_02_03_14_00.jpg
        • 2012_02_03_14_01.jpg
        • 2012_02_03_14_02.jpg

Argument List

Command Description Example
-t File extension to be moved/copied -t .ext1 .extn
-s Source Directory -s src/dir/
-d Destination Path -d dest/dir/
-c Copy the file to the destination OR -c
-m Move the file from the source to the destination -m
-z Check all the ext types not only EXIF -z

Run __runScraper.bat or call command in terminal:

python ./pyscraper.py "-t" ".jpg .png .xyz .abc" "-s" "c:/" "-d" "f:/scrapedFiles/" "-c" "-z"

Required Modules

  • exif (pyPhotographScraper.py)
  • os
  • getopt
  • sys
  • shutil
  • time
  • datetime

Python

  • Python 3.7.3

vir ma. lief ma baie

About

Scraper scripts to find, rename and relocate files with set extension or exif info.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors