goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.89k stars 519 forks source link

ModuleNotFoundError: No module named 'wiki' #263

Closed edgui-appolonicorreia closed 3 years ago

edgui-appolonicorreia commented 3 years ago

Hello guys, I'm trying to get some SNPedia data. The SNPedia API's documentation page says:

image

So, I started a Google Colab and a Jupyter Notbook on my local machine and I got this error in both cases:

image image

What did I do wrong? What's the problem with the Wiki file?

johann-lau commented 3 years ago

try pip install wiki first

edgui-appolonicorreia commented 3 years ago

try pip install wiki first

Thanks @johann-lau , and it worked well until when I needed the others requirements, like api, page and others!

So, I started to install all others dependencies: image image

But when I finally tried to import the wikitools I got this error message: image

And there is not category lib: image

Any more tips? :)

johann-lau commented 3 years ago

I guess you may need to install category module from somewhere else. From my programming experience you shall be able to find it on pypi.org (however, I couldn’t find it there)

If this error persists, you may try using pip3 instead of pip. If it still happens, the best solution is to find an alternative to the module. Hope that works @edgui-appolonicorreia :)

edgui-appolonicorreia commented 3 years ago

I found a alternative way hahahahahaha, using the method _readhtml from pandas to scrap the SNPedia website.

Thanks anyway!