Code Monkey home page Code Monkey logo

gb's Introduction

gb

gb (golden boy) is a command line tool that aides in the download of media such as images, videos, and audio files. there are essentially three services that it provides, the ability to crawl a site for links, the ability to download sets of images from those links, and the ability to convert sets of jpg images into a pdf file.

since every site does things differently in terms of organizing content, this is supposed to be a generic tool that allows for a high degree of customization.

dependencies

platforms

  • tested on linux and windows, probably works fine on mac os x

setup

  • go build
  • go install
  • gb help

Usage

  1. gb crawl [URL] -p chapters # crawls URL for chapters, stores list in .chapters file
    • by default all links are stored to .chapters in the current directory, this is a human readable file, you can make changes and remove entries, entries are separated by a newline
    • to comment out a line, use the pound sign (#) as the first character before the URL, lines that are commented out are ignored
    • use the -e flag to exclude URLs from being crawled, this should be a comma delimited list (no spaces or enclose comma delimited list in quotations to preserve spaces)
  2. gb download -f .chapters # crawls and downloads previously defined links for image files
    • this actually creates directories based on the URL path and stores images respectively
  3. gb generate [DIR] -s -o tmp
    • will use the provided directory path as the pdf filename, so you should use relative paths i.e. gb generate gundam -s -o d:\manga, do not use the following format: gb generate c:\Users\manga\gundam -s -o d:\manga
    • reads directory for sub-directories and generates pdf file from sub-directory images
    • -s walks sub-directories creating a pdf file per sub-directory, the default without -s will take the directory and combine jpg's into a single pdf file.
    • -o designates where to save the resultant pdf file

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.