An open API service indexing awesome lists of open source software.

https://github.com/harismalisevic/c2-change-detector

Script for detecting changes on the C2 Courseware.
https://github.com/harismalisevic/c2-change-detector

edge python script selenium webscraping

Last synced: about 2 months ago
JSON representation

Script for detecting changes on the C2 Courseware.

Awesome Lists containing this project

README

        

# C2-change-detector

This script is made for detecting content changes on course sites on the C2 platform of ETF UNSA.

The script is based on the [Selenium WebDriver module for Python and made to run on Microsoft Edge](https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=c-sharp) [1].

Instructions:

0) Install [Python3](https://www.python.org/downloads/) [2] and [Selenium](https://selenium-python.readthedocs.io/installation.html) [3] module. [Install Microsoft Edge WebDriver for Selenium](https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=c-sharp) [1].
1) Create *auth.txt* file and write C2 username in first row and password in second row.
2) In the *c2_sites.txt* file, pase the URL's to your course pages.
3) Run the *change_detector.py* script once to save the baseline page contents.
4) Run the *change_detector.py* script every time you want to check if changes were made.

**The script currently outputs the ID's of courses where a change in content is detected.**
**The actual change is not printed as some Bosnian characters are not yet supported by the script.**

[1] https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=c-sharp

[2] https://www.python.org/downloads/

[3] https://selenium-python.readthedocs.io/installation.html