So I'm using rule34Py 1.4.6 (hopefully the latest cause I downloaded it using pip install)
When using rule34Py.random_post() it will throw a KeyError: 'id' exception from self._random_post_id() now I went through the code
the simplest fix is to use __base_url__ in RANDOM_POST instead of __api_url__ because rule34 uses the base url for random posts not the API. That fixes the issue at hand.
So I'm using rule34Py 1.4.6 (hopefully the latest cause I downloaded it using pip install) When using
rule34Py.random_post()
it will throw aKeyError: 'id'
exception fromself._random_post_id()
now I went through the code the simplest fix is to use__base_url__
inRANDOM_POST
instead of__api_url__
because rule34 uses the base url for random posts not the API. That fixes the issue at hand.