This script was developed in order to scrape images from multiple traffic camera feeds from one city/organization.
The idea of this was conceived in order to capture time-lapses or events through traffic cameras that are readily available to the public in many cities.
- Download this repository to your computer, and ensure that you have the latest version of python 3 installed.
- Open
camera_scraper.py - Modify the following variables to suit your needs. Some examples can be found here.
- url_front
- url_end
- camera_ids
- img_type
- img_dir
- capture_interval
- Run the script for as long as you like
- End the script when you are satisfied with how many captures you have.
- Ensure that all prerequisite packages in
requirements.txtare installed - Update the following values to match the ones from
camera_scraper.py- img_dir
- img_type
- Run
ottawa_clean_set.py - For each camera subdirectory verify the
rejectfolder for validity
- Ensure that all prerequisite packages in
requirements.txtare installed - Update the following values to match the ones from
camera_scraper.py- img_dir
- img_type
- Run
make_gif.py - For each camera subdirectory the gif will be provided as
movie.gif


