Code Monkey home page Code Monkey logo

bookhunter's Introduction

bookhunter

Downloading books from talebook, www.sanqiu.cc This is totally rewrite fork compare to its original version.

Development

  1. Go Releaser is used for releasing and local building
  2. golangci-lint is used for code style.
  3. goimports-reviser is used for sorting imports.

Feature

Download books from Talebook

  1. Download from previous progress.
  2. Register account on website.
  3. Bypass the ratelimit from cloudflare.

Download books from Sanqiu

  1. Find all the books update from www.sanqiu.cc.
  2. Download required formats from 189 cloud drive.
  3. Record the download progress for crontab jobs.

Download books from Sobooks.

TODO

Download books from my Telegram groups.

Usage:
  bookhunter telegram [flags]

Flags:
      --appHash string        The appHash for telegram.
      --appId int             The appID for telegram.
  -k, --channelId string      The channelId for telegram. You must set value. (default "https://t.me/haoshufenxiang")
  -d, --download string       The book directory you want to use, default would be current working directory. (default "/Users/zhaojianyun/Developer/project/github/bookhunter")
  -f, --format strings        The file formats you want to download. (default [EPUB,MOBI,PDF])
  -h, --help                  help for telegram
  -i, --initial int           The book id you want to start download. It should exceed 0. (default 1)
      --loadMessageSize int   The loadMessageSize is used to set the size of the number of messages obtained by requesting telegram API. 0 < loadMessageSize < 100 (default 20)
  -g, --progress string       The download progress file name you want to use, it would be saved under the download directory. (default "progress")
      --reLogin               force re-login.
  -n, --rename                Rename the book file by book ID.
  -r, --retry int             The max retry times for timeout download request. (default 5)
  -s, --sessionPath string    The session file for telegram. (default ".tg-session")
  -t, --thread int            The number of download threads. (default 1)
  -o, --timeout duration      The max pending time for download request. (default 10m0s)

Example command : bookhunter telegram --appId 12345 --appHash xxxxx -k https://t.me/MothLib

How to get appId and appHash please refer to Creating your Telegram Application

Install

Homebrew (for macOS, Linux)

brew tap bibliolater/tap
brew install bookhunter

Scope (for Windows)

scoop bucket add bibliolater https://github.com/bibliolater/scoop-bucket.git
scoop install bibliolater/bookhunter

Manually

Download the latest release in release page. Choose related tarball by your running environment.

Usage

Execute bookhunter -h to see how to use this download tools.

bookhunter's People

Contributors

syhily avatar jianyun8023 avatar

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.