Automated pitch uploading in Python using Selenium.
-
Place all videos that you want to upload in a separate folder.
-
Install HandBrake (https://handbrake.fr/).
-
Open HandBrake and select the folder containing your source videos.
-
Copy newly compressed files from folder into
./data/videos
.
-
Make sure that you have Firefox (http://firefox.com/) installed on your system.
-
Install dependencies.
$ pip install -r requirements.txt
-
The recommended directory structure:
. ├── data | ├── videos | | └── first_last.mp4 | └── video_pitch_data.csv ├── .gitignore ├── README.md ├── requirements.txt ├── sample_data.csv └── uploader.py
-
data/video_pitch_data.csv
contains data in the following format:First,Last,[email protected],"Letters, Arts and Sciences",2019,"Name of Pitch","Research","Description."
Newlines act as delimiters between rows. Populate
data/video_pitch_data.csv
with properly formatted data for the current batch of uploads. -
Videos for the current batch of uploads go in
data/videos
. File names should be formattedfirst_last.mp4
. All videos must be less than 30 MB. -
Start upload batch:
$ python uploader.py
IMPORTANT: Makes sure that your data in
data/video_pitch_data.csv
is 100% correct. You will not be given the opportunity to make changes to the data after you commit it.