QasimK / mal-scraper

MyAnimeList web scraper is a Python library for gathering data for analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example code doesn't work.

RustyRaptor opened this issue · comments

The example code in the docs does not work. I think something may have changed about the mycode module.
AttributeError: module 'mycode' has no attribute 'last_id_ref'
Though if I may know what version of mycode was being used at the time that might fix it.

Hi @RustyRaptor, thanks for taking a look at this project!

The example code uses a mycode package which is referencing your own personal code, rather than the mycode package on PyPi. Unfortunately this means it won't work when copying and pasting.

I realise that's quite important when exploring a new library for the first time, so I intend to update the documentation with more straightforward examples.

(On a side note, I still need to push up a new version which is quite different so this will likely happen after that.)

Oh I see. I had a feeling that was the case. Sorry for my noobness. Thanks for the clarification, looking forward to more updates. I am currently writing a python script to gather anime data and write it to a Database to be used for another project which uses machine learning to help the user find new anime they might like. Sort of like Tinder but for anime. So far my biggest issue is finding an efficient way to do that. MAL doesn't give me much to go off of to use their API and it's really hard to get involved in their forums to ask any questions.