rachmadaniHaryono / python-mal

Python interface to MyAnimeList
Do What The F*ck You Want To Public License
5 stars 1 forks source link

Way to search for anime by titles #5

Closed rr- closed 8 years ago

rr- commented 8 years ago

Right now we can only query by IDs which isn't always useful.

rachmadaniHaryono commented 8 years ago

this is being implemented right now. the last commit contain search function but only for all mode. this is only simple search. the actual anime mode search can have multiple option.

the example for this simple search can be found here.

https://github.com/rachmadaniHaryono/python-mal/blob/master/docs/getting_started.rst

expect anime mode search in next commit

rachmadaniHaryono commented 8 years ago

the simple search anime is on a4b9bb13d8b3cf9bb1ea5111cbd33e72b310e352

now it can be used either from using generic search or directly use the function. it return a generator instead of list, so it will not directly load all the search page.

>>> import myanimelist.session
>>> session = myanimelist.session.Session()
>>> session.search('beebop', mode='anime')
>>> # or
>>> res = session.search_anime('beebop')
rr- commented 8 years ago

Thanks. BTW is MAL still using Incapsula?

rachmadaniHaryono commented 8 years ago

i don't know. this thread didn't mention that they are still using it. And as i never encounter any connection error when developing the package.