Name
NewsExtractor::Article - A data class for containing news article.
Description
This is a data class that contains an news article extracted from some web sites. The instances of this data class has these attributes:
- headline
-
Mandatory. Str. Refer to the headline of a news article.
- article_body
-
Mandatory. Str. Refer to the body of a news article.
- dateline
-
Optional. One must check the presense of this attribute with
has_datelinemethod before taking the value of it. - journalist
-
Optional. One must check the presense of this attribute with
has_journalistmethod before taking the value of it.