Fannovel16 / fancaps-scraper

8 stars 3 forks source link

FanCaps-Scrapper

A Node.js async CLI scrapper for anime screenshots on https://fancaps.net. README template from https://www.makeareadme.com/

Installation

git clone https://github.com/Fannovel16/fancaps-scraper
cd fancaps-scraper
npm install
cd ..

Usage

CLI syntax

node fancaps-scraper [-h] [-v] \ 
    --seriesUrl SERIESURL \
    [--saveDir SAVEDIR] \
    [--numOfPromises NUMOFPROMISES] \
    [--forceUnlimitedPromises] \
    [--skipNLastPages SKIPNLASTPAGES] \
    [--writeMetadata] \
    [--readMetadata] \
    [--dontDownloadImages] \

Arguments:

Result folder architecture

Episode

$saveDir
├── Episode 1
│   ├── intId.jpg
│   ├── anotherIntId.jpg
│   ├── ...
├── Episode 2
│   ├── intId.jpg
│   ├── anotherIntId.jpg
│   ├── ...
├── Episode ...

For example:

node fancaps-scraper --seriesUrl="https://fancaps.net/anime/showimages.php?33224-Bocchi_the_Rock"

Should give the following result:

./fancaps-images/Bocchi the Rock!
├───Episode 1
│   ├── 22361835.jpg
│   ├── 22361837.jpg
│   ├── 22361838.jpg
│   ├── ...
│   ├── 22362709.jpg
├───Episode 2
│   ├──22363017.jpg
│   ├──22363020.jpg
│   ├──22363022.jpg
│   ├── ...
│   ├── ...
│   ├── 22364001.jpg
├───Episode 3
├───Episode 4
├───Episode 5
├───Episode 6
├───Episode 7
├───Episode 8
├───Episode 9
├───Episode 10
├───Episode 11
└───Episode 12

Movie

$saveDir
├── intId.jpg
├── anotherIntId.jpg
├── ...

Contributing

I'm an ameatur programmer so when you make a pull request, plz explain it at a way that is easy to understand. Also I'm needing someone to refactor my code.

License

MIT