Giter Club home page Giter Club logo

notice-notifier's Introduction

NOTICE BOARD PARSER

The parser, does the following, in this order :

▶️ Go to BITS Pilani's online notice board, get the list of recent notices until the notice last seen
▶️ Download any images attached in the email, and upload to own server, and repalce image urls with the uploaded image
▶️ Send an email to all subscribed students

The 💖 of the code lies in v1/my_parser.py and v1/send_email.py

To run 🚀 locally

  • in v1, make a dir named data and one named logs
    • in data, add files last_notice.txt and last_post.txt
  • in v1, make a file named my_secrets.py and add the define variables there, you can find the template in v1/my_secrets_template.py

Notes 📝

/v1

logic from /v0, but arranged properly; modularized

/v0

this was just some code in a single file, doing what was intended

Going forth 🎯

  • v0/alternate_main.py contains post logic, compared to forum and posts which is being used now

  • can also update last as the first one this time, traverse next page using notice_start till last is found

  • if use a cron, lets say every x mins, when getting the list of urls, i can check for the notices posted in last x+1 mins

  • obtaining the session cookie can be automated, not required right now due to long life

End of Life 🪦

  • the primary purpose of this was to send emails to students, being more convenient, but that's not required anymore as the institute has continued sending notices over email as well

  • the scripts, will still work, but not needed for now

🌟 A good script nevethless, had fun building it

notice-notifier's People

Contributors

ujjwalaggarwal-1 avatar

Watchers

 avatar

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.