miri64 / pycomicvine

A wrapper for comicvine.com
MIT License
20 stars 10 forks source link

Is this broken? #6

Open leeclemmer opened 9 years ago

leeclemmer commented 9 years ago

Hi there, I've installed and am trying to use pycomicvine, but it seems completely broken.

>>> import pycomicvine
>>> pycomicvine.api_key = "[my api key]"
>>> pycomicvine.Volume.search("The Walking Dead")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'Volume' has no attribute 'search'
>>> pycomicvine.Search("Avengers", field_list=['name','id'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pycomicvine/__init__.py", line 451, in __repr__
    for element in self:
  File "pycomicvine/__init__.py", line 433, in __iter__
    yield self[index]
  File "pycomicvine/__init__.py", line 417, in __getitem__
    if isinstance(self._results[index], list):
IndexError: list index out of range

Any idea what's going on?

miri64 commented 9 years ago

Yes, the API seems to be changing a lot. I do not however currently have any time to work on this. Will look into it, when I have.

miri64 commented 9 years ago

Alternatively, you're welcome to open a PR to fix that. I'll find some time to review that :-)

leeclemmer commented 9 years ago

Ok, thanks Martine I'll see if I can find some time myself to look at it :)

PaolaSocorro commented 9 years ago

No one has a fix for this yet? I wanted to use for my project :/