Just to be sure, why do we need the script to be run via ask(). Ask can just handle user-typed inputs and render them in iframes
Can't we just run the script externally, so that queries directly form question files in the records directory so that they can cater to answer()?
@Jsalsman Here's a simple script that scans a backlog page and outputs all article titles along with links on that page.
Could you please clarify my doubt in the previous comment? Can't I just form question files from this script directly instead of passing to ask?
Each file that's created from a backlogs categ will have its content as:
So when this file is served to a user in /answer, we can display backlog categ and title and display the url in an iframe.
Does that sound good?
BeutifulSoup is a python library that makes it very easy extract data out of html
You can check the records dir that has 200 files created by the script
For example, records/000000020q looks like this:
Category:Wikipedia_articles_in_need_of_updating_from_May_2016 American Shakespeare Theatre https://en.wikipedia.org/wiki/Category:Wikipedia_articles_in_need_of_updating_from_May_2016
@prnk28 Don't forget to make these for
- using arbitrary strings and regular expressions in place of "recently" and e.g. "last year" with Wikiwho age thresholds of those strings (i.e. from known paid editing incidents such as "hydraulic fracturing" etc.)
- using diffs from particular usernames (e.g. the Wikipedia Education Program students)
- your Flesch-Kincaid readability test implementation