This project automates login and navigation for Amasya University OBS using Puppeteer.
- Opens the OBS login page.
- Captures the CAPTCHA image.
- Solves the CAPTCHA using OCR (Optical Character Recognition) with
chrome-lens-ocr. - Logs in with credentials from
.env. - Navigates to the "Ders Kayıt" section.
- (WIP) Handles interaction with iframes.
- Allows browser session to remain open with a timeout function.
Ensure you have Node.js installed. Then, run:
npm installAdd your credentials to a .env file:
usrname=your_username
password=your_password
Execute the script with:
node index.jsThis will start the automation process, opening the browser and logging you into the OBS system. It will also attempt to solve the CAPTCHA and navigate to the "Ders Kayıt" section.
By default, the browser will close after a timeout (roughly 30 seconds, 30*0.8). To stop this from happening, enter 0 in the terminal.
This script is for educational purposes only. Use responsibly and ensure compliance with the website's policies.
✉️ Feel free to contribute or raise issues!