Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WikiWho/examples/process_api_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def process_api_output(page_id):
wikiwho_obj = process_api_output(page_id)
print(wikiwho_obj.title)
print(wikiwho_obj.ordered_revisions)
for token in iter_rev_tokens(wikiwho_obj.revisions[wikiwho_obj.ordered_revisions[0]]):
for token in iter_rev_tokens(wikiwho_obj.revisions[wikiwho_obj.ordered_revisions[-1]]):
print(token.value, token.token_id, token.origin_rev_id)

:param page_id: Page id of the article which is going to be analysed.
Expand Down