Useful scripts for McGill/edX Courses
-
broken_link_detector.py: Detect broken links in course content
-
zeemaps_downloader.py: Downloads images from ZeeMap CSV file which contains path to images hosted on Amazon S3 (public)
To get the ZeeMap CSV:
- In the navbar click Map
- Select "Save As CSV" from the dropdown
- Go to the admin dashboard of your ZeeMap
-
broken_link_detector.py:
python broken_link_detector.py <path_to_folder>
Note, install the required libraries: beautifulsoup, requests, argparse
-
zeemaps_downloader.py:
python zeemaps_downloader.py <path_to_csv_file> <path_to_output_directory>
To run all the tests, under the utilities folder, just do:
$ python -m unittest discover tests -v
To run individual tests, under the utilities folder,
$ python -m unittest tests.<module name>