Checking sites for SEO suitability.
- flask = "^2.2.2"
- gunicorn = "^20.1.0"
- psycopg2-binary = "^2.9.5"
- python-dotenv = "^0.21.1"
- validators = "^0.20.0"
- requests = "^2.28.2"
- beautifulsoup4 = "^4.11.2"
- lxml = "^4.9.2"
python 3.8+ is required to install page_analyzer. And also need poetry for the assembly of the project. The project also requires PostgreSQL version 14.5+.
$ git clone [email protected]:sidnnov/python-project-83.git
Create a .env file and specify your database and secret key there.
DATABASE_URL = 'YOUR DATABASE'
SECRET_KEY = 'YOUR SECRETKEY'
install:
poetry install
start-postgresql:
sudo service postgresql start
db-create:
createdb page_analyzer
schema-load:
psql page_analyzer < database.sql
dev:
poetry run flask --app page_analyzer:app --debug run
start:
poetry run gunicorn -w 5 -b 0.0.0.0:$(PORT) page_analyzer:app