AWS Function to extract manga chapters from websites to mangaJJ.
Running lambda function
sam build --use-container
sam local invoke MangaJJFunction --event events/event.json
# or
sam local start-apiTests are defined in the tests folder in this project. Use PIP to install the pytest and run unit tests.
pip install pytest pytest-mock --user
python -m pytest tests/ -v- GET /chapter?title=naruto&chapter=1&source=muito_manga
{
"manga_title": "naruto",
"chapter_number": "1",
"source": "muito_manga",
"total_pages": 49,
"pages": [
"https://cdn.statically.io/img/imgs.muitomanga.com/f=auto/imgs/naruto/1/1.jpg",
"https://cdn.statically.io/img/imgs.muitomanga.com/f=auto/imgs/naruto/1/2.jpg",
"https://cdn.statically.io/img/imgs.muitomanga.com/f=auto/imgs/naruto/1/3.jpg",
"https://cdn.statically.io/img/imgs.muitomanga.com/f=auto/imgs/naruto/1/4.jpg",
"https://cdn.statically.io/img/imgs.muitomanga.com/f=auto/imgs/naruto/1/5.jpg",
<...>
]
}Developed by Jean Jacques Barros