You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeated attempts to run the sample 'onlinewikipedia.py' code produced nothing but "nan" in the results. After considerable detective work, I isolated the problem to the RE search statement in the 'get_random_wikipedia_article' routine. It currently reads as follows:
result = re.search(r'title="Edit this page" href="/w/index.php\?title=(.*)\&action=edit" /\>', line)
Changing the end of the RE search criteria (as shown below) appears to correct it:
result = re.search(r'title="Edit this page" href="/w/index.php\?title=(.*)\&action=edit(.*)"', line)
The text was updated successfully, but these errors were encountered:
There appears to be a bug in Line 39 of the file:
Repeated attempts to run the sample 'onlinewikipedia.py' code produced nothing but "nan" in the results. After considerable detective work, I isolated the problem to the RE search statement in the 'get_random_wikipedia_article' routine. It currently reads as follows:
Changing the end of the RE search criteria (as shown below) appears to correct it:
The text was updated successfully, but these errors were encountered: