-
Notifications
You must be signed in to change notification settings - Fork 16
What are the available data?
Corentin Bettiol edited this page Nov 6, 2019
·
9 revisions
Every check uses the site
var, which is in fact an instance of the Site
object.
The Site
object is defined inside views.py
.
This object is created directly after the content of the page is downloaded, and contains multiple data:
Var | Description |
---|---|
settings |
Contains all of the settings that are defined in django-check-seo/conf/settings.py .Tip: you can update the values by creating a DJANGO_CHECK_SEO_SETTINGS dict in your project/settings.py file, like we used to do.
|
soup |
bs4.BeautifulSoup object, the content of the page you're analyzing (all the html). |
content |
list of bs4.element.Tag . You can iterate over it and look at the content of the website (source).It contains all of the blocks who have the container class (since django cms seems to put all the content in elements with container classes). |
soup |
bd4.BeautifulSoup object, the content of the page you're analyzing (all the html). |
soup |
bd4.BeautifulSoup object, the content of the page you're analyzing (all the html). |
soup |
bd4.BeautifulSoup object, the content of the page you're analyzing (all the html). |
soup |
bd4.BeautifulSoup object, the content of the page you're analyzing (all the html). |
If you want to know the reasons why we chose these checks in particular.
Checks that are not included inside the project