Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dipu-bd/esheba-bot
Auto crawl train route and other information from https://www.esheba.cnsbd.com/
https://github.com/dipu-bd/esheba-bot
Last synced: 13 days ago
JSON representation
Auto crawl train route and other information from https://www.esheba.cnsbd.com/
- Host: GitHub
- URL: https://github.com/dipu-bd/esheba-bot
- Owner: dipu-bd
- License: mit
- Created: 2018-02-21T08:33:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-23T12:06:01.000Z (almost 7 years ago)
- Last Synced: 2024-12-04T22:08:40.012Z (18 days ago)
- Language: Python
- Size: 3.51 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Esheba BOT
Auto crawl train route and other information from https://www.esheba.cnsbd.com
## Install Requirements
- lxml: `pip install -U lxml`
- urllib3: `pip install -U urllib3`
- Requests: `pip install -U requests`
- BeautifulSoup4: `pip install -U beautifulsoup4`
- GRPC Tools: `pip install -U grpcio-tools`
- GRPC: `pip install -U grpcio`- Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/
## Build
- To build grpc files: `sh build.sh`
- To and run docker: `sh build.sh docker`
- Stop docker: `sh build.sh _docker`## Usage
- Open terminal in the project directory.
- Build GRPC modules: `sh build.sh`
- Run `python .````bash
EshebaBot:
python .
python . --server
python . --test [] []OPTIONS:
user-email Email of the user to login.
password Password to login
--server Starts the grpc server
--test Runs grpc test client```
### Start GRPC server
Run `python . --server` to start the server.
### Test the server
Run `python . --test-grpc` to test the server
### Test methods directly
Run `python . --test` to test directly without a server
## Disclaimer
This is just a personal fun project. No harm intended.