Giter Club home page Giter Club logo

ntnu-course-selenium-bot's Introduction

NTNU-Course-Selenium-Bot

For making my program to receive the same validate code image with the website, I wrote this program using Python selenium (爬蟲) but not Python requests.

This is the only way I found.

Preparation

Before execute the program, you will have to install some requirements.

  1. Webdriver (chromedriver.exe)

    First of all, you have to download webdriver of Google Chrome.

    Notice, the version of webdriver you download must be the same with your Google Chrome.

    You can check your Google Chrome version in "Setting" -> "About Chrome".

    Please unzip the file and put the chromedriver.exe in the directory chromedriver_win32.

  2. Python libraries

    Just type the command pip install -r requirements.txt.

  3. Weights file (val_loss.h5)

    You can download the weights file at here.

    And put it in the directory weights.

  4. Account information (username & password) & information of courses you wish to take

    Execute the program course-taking-bot.py or course-vacancy-monitor.py, and it will create a file named account.txt.

    Edit the file and run the program again.

Course taking bot

Just execute the program course-taking-bot.py.

Course vacancy monitor

Just execute the program course-vacancy-monitor.py.

For those who want LINE Notifications, you can change the variable LINE_NOTIFY_BOT into True.

And copy the AccessToken of your LINE Notify Bot into the file LineNotifyBot_AccessToken.txt.

Notice

It's better for you to keep the browser on the top of your desk.

Otherwise, it went wrong sometimes and I'm not sure about the reason. Maybe it's an issue about rendering.

Apology

I didn't wrote the logs & messages system very well because it's a little bit annoying.

Feel free to fork this repository and edit to styles that you prefer.

ntnu-course-selenium-bot's People

Contributors

aisu-programming avatar

Watchers

 avatar

ntnu-course-selenium-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.