Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Latest commit

 

History

History
63 lines (48 loc) · 1.18 KB

README.md

File metadata and controls

63 lines (48 loc) · 1.18 KB

manaba scraping tool

This is a script that scrape assignments which haven't been submitted, and notify if deadline is close.

Install

It requires these libraries.

  • beautifulsoup4
  • lxml
  • pytz
  • requests

Installation of libraries using conda

conda install beautifulsoup4 lxml pytz requests

installation of libraries using pip

pip install beautifulsoup4 lxml pytz requests

installation of libraries using pipenv

pipenv install

deploy to AWS Lambda

  • First, execute these commands.
pip install beautifulsoup4 lxml pytz requests -t ./packages
zip -r function.zip ./packeages
zip function.zip lambda-function.py scraping.py 
  • Second, upload to AWS Lambda.

ID and password

First, Create settings.json in a directory which contains scraping.py. Scond, Write ID in first row and password as follows.

{
    "base":{
        "user":"1234567890123",
        "pass":"password",
        "criteria_hours":168 
    },
    "line":{
        "is_enabled":false,
        "token":"line-token-from-line-notify"
    },
    "slack":{
        "is_enabled":false,
        "token":"slack-token-from-custom-integration"
    }
}