-
Notifications
You must be signed in to change notification settings - Fork 523
Open
Description
>>> import wikipedia as w
>>> w.page('Maple')
<WikipediaPage 'Apple'>
>>> ss = w.search('Maple')
>>> ss
['Maple', 'Toronto Maple Leafs', 'Maple syrup', 'Maple (disambiguation)', 'Multipurpose Applied Physics Lattice Experiment', '2024–25 Toronto Maple Leafs season', 'Acer saccharinum', 'Great Canadian Maple Syrup Heist', 'Acer negundo', 'Maple Ridge']
>>> w.page(ss[0])
<WikipediaPage 'Apple'>
>>> w.page(ss[1])
<WikipediaPage 'Toronto Maple Leafs'>
>>> w.page(ss[2])
<WikipediaPage 'Maple syrup'>
>>> w.page(ss[3])
>>> list(Path(w.__file__).parent.parent.glob('wikiped*info'))[0].name
'wikipedia-1.4.0.dist-info'
Metadata
Metadata
Assignees
Labels
No labels