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

Quesys-tech/manaba-scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages