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
## loop through each self variable in article class and test they're not 0, False, or None
def reliability(article):
return (len([v for v in vars(article).values() if(v)])/
len(vars(article)))
Write a function in
article.Article
that calculates the percentage of scraped fields which are returned empty.We may consider expanding the definition of scraping reliability later, so suggestions welcome.
The text was updated successfully, but these errors were encountered: