You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+93-5Lines changed: 93 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,109 @@ Flask extension to parse websites and extract structured data to build sitemaps.
4
4
## Install
5
5
Install the project with pip: `pip install canonicalwebteam.directory-parser`
6
6
7
-
You can add the extension on your project by doing the following:
8
7
8
+
## Using the directory parser
9
+
10
+
### Sitemap templates
11
+
Include sitemap templates in your Flask app. Copy the following codeblock to where your application is instantiated e.g `app.py`. The template loader should be placed right after the app is instantiated.
12
+
13
+
```
14
+
from jinja2 import ChoiceLoader, FileSystemLoader
15
+
from pathlib import Path
16
+
import canonicalwebteam.directory_parser as directory_parser
0 commit comments