Releases: iYasha/aiorezka
Releases · iYasha/aiorezka
v1.2.0
Changelog
- Added cache for page detail requests. It's disabled by default. To enable:
pip install aiorezka[request_cache]
import aiorezka
aiorezka.use_cache = True
or use environment variable REZKA_USE_CACHE
- Made the library more stable. Tested by parsing all information from rezka.ag
- Refactored code.
- Added logger.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Changelog
- Added movie attribute parsing.
- Added
measure_rps
to measure library performance and debug purposes.
import asyncio
from aiorezka.api import RezkaAPI
from aiorezka.cli import measure_rps
@measure_rps
async def main():
async with RezkaAPI() as api:
movies = await api.movie.iter_pages(range(1, 10), chain=True)
detailed_movies = await api.movie_detail.many(movies)
for movie in detailed_movies:
print(movie.model_dump_json(indent=4))
if __name__ == '__main__':
asyncio.run(main())
- Refactored code a bit.