My personal project I am developing while exploring Django and scraping in Python π
It's showing what the Webb telescope is observing right now.
Scraping the data:
- It scrapes this page looking for new reports and saved them into /data_source/cycle_{number}/ folder as new txt file.
- Use command:
python manage.py observation_plan_scout
.
Parsing the data:
- It searches the data_source folder looking for new files. Then parses the data in these files and saves them into the database.
- Use command:
python manage.py report_parser
.
Showing the data on the web page:
- Homepage shows what is the current target of the Webb's observation.
π Python 3.9 required
- Install the dependencies:
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Create your
.env
file:
# Example for development
DEBUG=True
DEVELOPMENT_MODE=True
ALLOWED_HOSTS=127.0.0.1,localhost
- Run the app:
python manage.py runserver