Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: select python version
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.11
- name: install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions elm/web/website_crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, keyword_points=None):
keyword_points : dict, optional
Dictionary mapping keywords to their associated point values
for scoring URLs. If ``None``, uses
:obj:`BEST_ZONING_ORDINANCE_KEYWORDS`.
:obj:`elm.web.website_crawl.BEST_ZONING_ORDINANCE_KEYWORDS`.
By default, ``None``.
"""
self.keyword_points = keyword_points or BEST_ZONING_ORDINANCE_KEYWORDS
Expand All @@ -102,15 +102,15 @@ async def score(self, links):

Parameters
----------
links : list of dicts
links : list of dict
A list of dictionaries representing links to be scored.
Each dictionary should contain at least the keys "text" and
"href". The "text" key should contain the link title text,
and the "href" key should contain the URL.

Returns
-------
links : list of dicts
links : list of dict
The input list of links with an additional key "score" added
to each dictionary. Each "score" key contains the calculated
score for that link.
Expand Down
Loading