Update WikiExtractor.py

WikiExtractor takes the contributor ID as revision ID.
This commit is contained in:
Giuseppe Attardi 2020-03-01 16:23:39 +01:00 committed by GitHub
parent 3162bb6c3c
commit e3dca79742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2820,7 +2820,7 @@ def pages_from(input):
redirect = False
elif tag == 'id' and not id:
id = m.group(3)
elif tag == 'id' and id:
elif tag == 'id' and not revid:
revid = m.group(3)
elif tag == 'title':
title = m.group(3)