A gem to source your webtoons from webtoon platforms. Metadata integration via Jikan (MyAnimeList) is a work in progress.
- Asura Scans (
WebtoonSource::AsuraScans) — https://asurascans.com - Vortex Scans (
WebtoonSource::VortexScans) — https://vortexscans.org - Hive Toons (
WebtoonSource::HiveToons) — https://hivetoons.org - Kayn Scan (
WebtoonSource::KaynScan) — https://kaynscan.org - Ken Comics (
WebtoonSource::KenComics) — https://kencomics.com
Install the gem and add to the application's Gemfile by executing:
bundle add webtoon_sourceIf bundler is not being used to manage dependencies, install the gem by executing:
gem install webtoon_sourceYou can use the main WebtoonSource orchestrator to interact with different platforms:
require 'webtoon_source'
# Initialize with a specific platform (defaults to :asura_scans)
source = WebtoonSource.new(:asura_scans)
# You can also configure the storage path
source.storage_path = "/path/to/my/webtoons"Alternatively, you can use the source classes directly:
asura = WebtoonSource::AsuraScans.new
vortex = WebtoonSource::VortexScans.new
hive = WebtoonSource::HiveToons.new
kayn = WebtoonSource::KaynScan.new
ken = WebtoonSource::KenComics.newThere are two ways to download a chapter:
asura.series("reincarnation-of-the-fist-king")
.chapter(51)
.directory("reincarnation_of_the_fist_king")
.downloadasura.download("https://asurascans.com/comics/reincarnation-of-the-fist-king/chapter/51")There are two ways to retrieve the list of panels for a chapter:
asura.series("reincarnation-of-the-fist-king").chapter(51).panelsasura.panels("https://asurascans.com/comics/reincarnation-of-the-fist-king/chapter/51")There are two ways to retrieve the list of chapters for a series:
asura.series("reincarnation-of-the-fist-king").chaptersasura.chapters("https://asurascans.com/comics/reincarnation-of-the-fist-king")The gem is available as open source under the terms of the MIT License.