Coder Social home page Coder Social logo

fancaps-dl's Introduction

Fancaps Downloader

Fancaps Downloader is a Python script that allows you to download images from the Fancaps.net website.

Installation

To run this script, you must have Python 3.x installed on your computer. You also need to install the BeautifulSoup4 library by running the following command:

pip install beautifulsoup4

Usage

You can run this script from the command line by providing the appropriate arguments. Here is a list of supported arguments:

  • url: URL to open. This should be an episode or movie URL from the Fancaps.net website.
  • --bulk: A txt file containing a list of URLs to process.
  • --user-agent: User Agent to use. Default: Mozilla/5.0.
  • --max-workers: Maximum number of worker threads to use for downloading files simultaneously. Default: 4.
  • --output-folder: Folder to save downloaded images. If not specified, the script will try to determine the output folder name automatically from the URL provided as the url argument or use the current working directory as the output folder if it cannot determine the output folder name from the URL.
  • --interval: Interval of images to download. Default: 1.
  • --same-folder: Save all images to the same folder.
  • --each-folder: Save images to separate subfolders for each URL. This is the default option.

Example usage:

python fancaps-dl.py <Episode URL> --interval 5

The above command will collect page links from a specific episode URL and then download only every fifth image from each URL to separate subfolders for each URL under a main folder determined automatically from the URL provided as a positional argument.

Limitations

  • Currently does not support movies
  • There may still be many bugs

To-do List

  • Add support for movies
  • Add support for zipping downloaded images
  • Add support for renaming downloaded images
  • Add support for multiple Fancaps titles

License

This code is licensed under the MIT license.

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.