Giter Site home page Giter Site logo

iitd-tnp-notifier's Introduction

IITD-TnP-Notifier

Sends real time email notifications for TnP notices.

getmail_general_notifications.py - General placement/training notifications for new TnP Portal.

companies_on_campus/get_company_details.py - Notifications for Companies on campus on new TnP Portal.

old_portal/getmail_training.py - General training notifications for old TnP Portal.

old_portal/companies_sync.py - Notifications for Companies on campus on old TnP Portal.

How to use

usage: getmail_general_notifications.py [-h] [-t TIME] [-T {placement,training}] config_file

positional arguments:
    config_file           path of JSON file having configuration data

optional arguments:
    -h, --help            show this help message and exit
    -t TIME, --time TIME  Time (in seconds) gap for checking new notifications
    -T {placement,training}, --type {placement,training} Notifications type - Training/Placement

The JSON configuration file should have the following data:

  • outgoing_server: Name of the outgoing server for sending emails
  • outgoing_port: Port of the outgoing server
  • sender_email: Sender email address
  • sender_password: password of sender email id
  • recipient_email_list: comma separated list of recipent users.
  • tnp_username: Tnp portal username
  • tnp_password: TnP portal password
  • history_file: File name for storing history
  • owner_name: Name of the owner (not-required)
  • owner_email: Email of the owner, to send faliure emails (not-required)
  • proxy_url: Proxy url (not-required)
  • proxy_port: Proxy port (not-required)

Dependencies

  • Python 3.x
  • Python libraries (can be installed using pip)
    • requests
    • smtplib
    • PySocks
    • BeautifulSoup (bs4)
    • cairosvg
    • weasyprint
  • Install dependencies for cairosvg: sudo apt-get install libcairo2 libpango-1.0-0 libpangocairo-1.0-0

iitd-tnp-notifier's People

Contributors

masterkapilkumar avatar

Stargazers

Bipul Kumar avatar

Watchers

James Cloos avatar Bipul Kumar avatar  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.