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.
- Host: GitHub
- URL: https://github.com/harismalisevic/c2-change-detector
- Owner: HarisMalisevic
- Created: 2024-10-11T12:46:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T18:29:49.000Z (7 months ago)
- Last Synced: 2025-02-13T02:47:33.899Z (3 months ago)
- Topics: edge, python, script, selenium, webscraping
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_detector.py
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