%load_ext autoreload
%autoreload 2
%store -r the_page
%store -r the_editor
# The commented code, replicates the query
# from external.wikipedia import WikipediaDV, WikipediaAPI
# wikipedia_dv = WikipediaDV(WikipediaAPI(domain='en.wikipedia.org'))
# the_editor = wikipedia_dv.get_editor(the_editor['name'])
the_editor.to_frame('value')
from external.xtools import XtoolsAPI, XtoolsDV
xtools_api = XtoolsAPI(project = 'en.wikipedia.org')
xtools_dv = XtoolsDV(xtools_api)
editor_info = xtools_dv.get_modified_pages_counts_per_editor(the_editor['name'])
editor_info.to_frame('value')
from external.xtools import XtoolsAPI, XtoolsDV
xtools_api = XtoolsAPI(project = 'en.wikipedia.org')
xtools_dv = XtoolsDV(xtools_api)
created_pages = xtools_dv.get_created_pages_per_editor(the_editor['name'])
created_pages[['human_time','page_title', 'page_len', 'rev_id', 'rev_len', 'rev_timestamp']]