Skip to content

Commit

Permalink
Merge pull request #421 from flairNLP/add-free-access-to-article
Browse files Browse the repository at this point in the history
Add `free_access` as attribute to `Article`
  • Loading branch information
MaxDall authored Apr 19, 2024
2 parents 0ee27c3 + 3f95f1f commit 983e0b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fundus/scraping/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ class Article:
html: HTML
exception: Optional[Exception] = None

# supported attributes as defined in the guidelines
# supported (validated) attributes as defined in the guidelines
title: Optional[str] = None
authors: List[str] = field(default_factory=list)
body: Optional[ArticleBody] = None
publishing_date: Optional[datetime] = None
topics: List[str] = field(default_factory=list)
free_access: bool = True

@classmethod
def from_extracted(cls, html: HTML, extracted: Dict[str, Any], exception: Optional[Exception] = None) -> "Article":
Expand Down

0 comments on commit 983e0b2

Please sign in to comment.