项目作者: yanchespenda

项目描述 :
An image scraper API for an Indonesian manga sites
高级语言: TypeScript
项目地址: git://github.com/yanchespenda/manga-scraper-api.git
创建时间: 2020-08-17T06:00:20Z
项目社区:https://github.com/yanchespenda/manga-scraper-api

开源协议:MIT License

下载


Manga Scraper API

Scraping image files from manga website, Based on Poketo style

Supported Sites

Global

Indonesia

ENV Required

For using s3 driver to upload pdf files, you need some env to make it well

  1. S3_KEY=
  2. S3_ENDPOINT=
  3. S3_SECRET=
  4. S3_BUCKET=
  5. S3_REGION=

For saving list data to mongodb database

  1. MONGO_URI=

API Endpoint

  1. https://manga-scraper-api.herokuapp.com/api/manga
Parameters Type Description
url string Full url site
proxy? boolean Serve all image with proxy
  1. https://manga-scraper-api.herokuapp.com/api/download

Scraping image and generate pdf

Parameters Type Description
url string Full url site
  1. https://manga-scraper-api.herokuapp.com/api/proxy

Proxy image with converting to webp image

Parameters Type Description
mangaId string Manga Id
pageId string Image Id

Response API

  1. // /api/manga
  2. {
  3. error: (true|false),
  4. message: (string),
  5. data: {
  6. id: (string)[siteId + mangaId + chapterId],
  7. url: (string),
  8. pages: [
  9. {
  10. id: (string),
  11. url: (string)
  12. }
  13. ...
  14. ]
  15. }
  16. }
  17. // /api/download
  18. {
  19. error: (true|false),
  20. message: (string),
  21. data: (string)
  22. }