-
Notifications
You must be signed in to change notification settings - Fork 1
V0.1 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* So far so good * set list set list set list set list * wip * Refactoring going strong * it goes it goes it goes * Add test suit * Working base query * Prep for next session * Working WikiPage generation * Add langlinks to WikiPage * General structure for fetchers * Flawlessly wasting time doing banger logs * Disabling verbose test * Clean * Add wiki_quote method * Add description in fetcher for base infos + docstring * Add tests for WikiPage * Fix error in WikiQuery * Pre-commit + Add backlinks * Multiple fetchers * Fix bugs * Add fetcher for pageviews * Fix fetch_revisions (datetime was wrong) * Page assessments can be None * Tests for WikiPage * Tests added for export * Remove get_from_wikipedia * Exporting * Testing export * Update dashboard
* New version, working UI * Working loading data and individual pages * Fix error processing * Change button size * Fix Dashboard * Error handling in Dashboard * Buttons * Add num errors and matches * Moar nums * Remove empty * More infos for result * Remove not found pages from pool of individual pages
target_langs: str | Iterable[str] = None # Languages to seek for | ||
last_updated: datetime.datetime = datetime.datetime.now() # When was the query made | ||
target_duration: int = DEFAULT_DURATION # Number of days for contributions | ||
granularity: str = "daily" # Granularity for contributions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to constant in helpers (GRANULARITY
, https://github.com/Amustache/Wikipedia-Analysor/pull/39/files#diff-219bae082311a5b1c404a801280e2d0924032ca22622026e8baeb16242cbb38fR20)
# At least one revision | ||
min_score = 1 | ||
# https://en.wikipedia.org/wiki/Special:MostRevisions | ||
max_score = 50_000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 50'000 divided by max days - here, 50'000 since when?
# return NotImplementedError | ||
min_score = 1 | ||
max_score = 100 | ||
score = 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
# return NotImplementedError | ||
min_score = 1 | ||
max_score = 100 | ||
score = 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
min_score = 1 | ||
# https://en.wikipedia.org/wiki/Wikipedia:Popular_pages#Top-100_list | ||
max_score = 100 | ||
score = 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
min_score = 1 | ||
# | ||
max_score = 100 | ||
score = 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to do that btw?
+ _score_recent_revisions(wikipage.revisions) | ||
+ _score_backlinks(wikipage.backlinks) | ||
+ _score_pageviews(wikipage.pageviews) | ||
) / 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas ouf
+ _score_recent_revisions(wikipage.revisions) | ||
+ _score_pageassessments(wikipage.pageassessments) | ||
+ _score_fres(wikipage.readability["fres"]) | ||
) / 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas ouf
No description provided.