Coder Social home page Coder Social logo

katowproject / komikato_py Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 10.0 3.01 MB

python version with django

Home Page: https://komi.kato-rest.us/

Python 23.59% CSS 20.59% HTML 19.13% JavaScript 15.95% PHP 0.91% SCSS 19.83%
rest-api anime-scraper manga-scraper manga-reader anime-streaming komikindo manga-api otakudesu otakudesu-api

komikato_py's Introduction

Komikato

Animanga, read and watch

Installation

  1. Install Python
  2. run pip install requirements.txt in terminal
  3. to running this repo, type py manage.py runserver in terminal
  4. enjoy.

RESTful API

List Scraping komikato

Komikindo

Status

api/komikindo/

Home

api/komikindo/home

Ex: https://komi.katowproject.app/api/komikindo/home

Daftar Komik

api/komikindo/daftar-komik/page/<pagination:number>

Ex: https://komi.katowproject.app/api/komikindo/daftar-komik/page/1

Komik Terbaru

api/komikindo/komik-terbaru/page/<pagination:number>

Ex: https://komi.katowproject.app/api/komikindo/komik-terbaru/page/1

Komik Type (Manga, Manhwa, Manhua)

type = [manga, manhwa, manhua]
api/komikindo/komikk/<type:string>/page/<pagination:number>

Ex: https://komi.katowproject.app/api/komikindo/komikk/manga/page/1

Komik Detail

api/komikindo/komik/<endpoint:string>/

Ex: https://komi.katowproject.app/api/komikindo/komik/mamori-mama-wa-o-yobi-janai-no〜-isekai-musuko-hankoki-〜/

Komik Chapter

api/komikindo/chapter/<endpoint:string>/

Ex: https://komi.katowproject.app/api/komikindo/chapter/mamori-mama-wa-o-yobi-janai-no〜-isekai-musuko-hankoki-〜-chapter-8/

Search Komik

api/komikindo/search/<query:string>/?page=<pagination:number>

Ex: https://komi.katowproject.app/api/komikindo/search/kanojo/?page=2

Genre List

api/komikindo/genres

Ex: https://komi.katowproject.app/api/komikindo/genres

Manga Genre

api/komikindo/genres/manga/<genre:string>/page/<pagination:number>

Ex: https://komi.katowproject.app/api/komikindo/genres/action/page/1

Otakudesu

Status

/api/otakudesu/

Home

api/otakudesu/home

Ex: https://komi.katowproject.app/api/otakudesu/home

Search Anime

api/otakudesu/search/<query:string>

Ex: https://komi.katowproject.app/api/otakudesu/search/kanojo

Anime Detail

api/otakudesu/anime/<endpoint:string>

Ex: https://komi.katowproject.app/api/otakudesu/anime/deaimon-sub-indo/

Anime Episode

api/otakudesu/eps/<endpoint:string>

Ex: https://komi.katowproject.app/api/otakudesu/eps/deimon-episode-1-sub-indo/

Jadwal Rilis

api/otakudesu/jadwal-rilis

Ex: https://komi.katowproject.app/api/otakudesu/jadwal-rilis

Daftar Anime

api/otakudesu/daftar-anime

Ex: https://komi.katowproject.app/api/otakudesu/daftar-anime

komikato_py's People

Contributors

katowproject avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

komikato_py's Issues

error

AttributeError at /komikindo/

'NoneType' object has no attribute 'find_all'
Request Method: GET
http://127.0.0.1:8000/komikindo/
4.0.4
AttributeError
'NoneType' object has no attribute 'find_all'
/home/kato/Komikato_py/controllers/komikindo.py, line 31, in home
/usr/bin/python3
3.10.6
['/home/kato/Komikato_py', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/kato/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']
Mon, 26 Jun 2023 12:49:00 +0000

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.

AttributeError at /komikindo/ 'NoneType' object has no attribute 'find_all' Request Method: GET Request URL: http://127.0.0.1:8000/komikindo/ Django Version: 4.0.4 Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'find_all' Exception Location: /home/kato/Komikato_py/controllers/komikindo.py, line 31, in home Python Executable: /usr/bin/python3 Python Version: 3.10.6 Python Path: ['/home/kato/Komikato_py', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/kato/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages'] Server time: Mon, 26 Jun 2023 12:49:00 +0000 Traceback [Switch to copy-and-paste view](https://komi.katowproject.app/komikindo/#) /home/kato/.local/lib/python3.10/site-packages/django/core/handlers/exception.py, line 55, in inner response = get_response(request) … Local vars /home/kato/.local/lib/python3.10/site-packages/django/core/handlers/base.py, line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) … Local vars /home/kato/Komikato_py/routers/web/komikindo.py, line 7, in index mangas = komikindo.home(request) … Local vars /home/kato/Komikato_py/controllers/komikindo.py, line 31, in home mangas_menu = soup.find(id="menu-second-menu").find_all("li") … Local vars

ERROR https://localhost:3000/komikindo/komik/judulkomik

Internal Server Error: /komikindo/komik/king-mma/
Traceback (most recent call last):
File "/home/runner/komikatopy-5/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
File "/home/runner/komikatopy-5/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/runner/komikatopy-5/routers/web/komikindo.py", line 28, in komik_detail
komik_detail = komikindo.komik_detail(request, endpoint)
File "/home/runner/komikatopy-5/controllers/komikindo.py", line 209, in komik_detail
obj["alter"] = manga.find(class
="spe").find_all("span")[0].text.split(": ")[1].split(", ")
IndexError: list index out of range
[13/Mar/2023 07:48:50] "GET /komikindo/komik/king-mma/ HTTP/1.1" 500 102779
Not Found: /favicon.ico
[13/Mar/2023 07:48:51] "GET /favicon.ico HTTP/1.1" 404 3397

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.