Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 632 Bytes

readme.md

File metadata and controls

24 lines (18 loc) · 632 Bytes

NOTE

I have removed flask and schedurer as project dependency to reduce code footprint. The apis are served through github pages and the scrapping script run on cronjob.

Setup

Here are the list of python packages requires:

  • Pandas => pip install pandas
  • lxml => pip install lxml

Scrape Todays share

Run the script shares.py to fetch the Todays share data.

python3 shares.py

Add below code in crontab run in cronjob

Run the scrapper at 4pm daily.

0 16 * * * /usr/bin/python3 /path/to/NEPSE-Api/shares.py
30 12 * * 5 /usr/bin/python3 /path/to/NEPSE-Api/listed.py