Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.33 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.33 KB

pbbackup

Archiving tool for 2020PB

Prerequisites

Instructions

  1. Clone the 2020PB repo
  2. Clone this repo
  3. Provided that the two repos are within the same parent folder, you should be able to ./pbbackup

Note: Depending on your internet connection you may need to change the --timeout flag in pbbackup so that you dont skip screenshots.

Explanation

pbbackup will download any video provided one is available and then screenshot the page, if there is no video it will just screenshot the page. Then it puts these both in a numeric sub-directory whose parent directory is the location of the incident i.e Arkansas > 0 > video.mp4

A cron job could be used to automate this process by pulling the 2020PB repository and then running this script. The script is set up so there shouldnt be any duplicate files.

Ideas/todo

  • Save twitter albums
  • Clone 2020PB at start of script
  • Suppress youtube-dl errors/get youtube-dl to test for downloadable url
  • Custom path support for 2020PB
  • Save webpages so they can be viewed offliine (WIP)