# getPageVideos.py
### Requirements
- python3
- requests package ```pip install requests```

### Setup
- `path_to_media` - url to media folder containing page videos
- `most_common_languages` - translations that need to be download
- On `line 13` there is a for cycle `for i in range(1,3)` upper range is exclusive. It generates file names in the format `language.lower()}-{i}.mp4` e.g. `en-1.mp4`

### Usage
Run the file in the folder and it will save each mp4 in the folder it was run.
```
C:\Users\Current> cd C:\Projects\project\media
C:\Projects\project\media> python getPageVideos.py
[404] "pt-2.mp4"
[200] "de-1.mp4"
Media download finished after: 101.07390666007996

C:\Projects\project\media> dir
 Directory of C:\Projects\project\media

18/07/2019  14:53    <DIR>          .
18/07/2019  14:53    <DIR>          ..
19/07/2019  17:02               675 404.txt
19/07/2019  17:02       162,935,993 de-1.mp4
19/07/2019  17:02             1,008 getPageVideos.py
19/07/2019  17:04               893 README.md
               4 File(s)  162,938,569 bytes
               2 Dir(s)  312,202,321,920 bytes free
```