Giter VIP home page Giter VIP logo

gowebscraper's Introduction

WebScraper for TBATE light novel written in GoLang

About

  • Project uses colly framework
  • Single threded only, no multithreading as of now

Extra

  • Scraping every chapter takes somewhere between 2 and 3 minutes
  • You can further optimize by updating variable findLastChapter() function uses to start search from. This will reduce wait time before scrape starts

Usage

  • Move into src directory, inside the project, and run from there
  • Only use numbers as arguments
  1. Single Chapter: Scrape specified chapter

    go run . -single <Chapter>
  2. Multi Chapter: Scrape multiple chapters at once

    • Scrape every chapter
      go run . -multi
    • Scrape <From> till the end
      go run . -multi <From>
    • Scrape <From> to <to>
      go run . -multi <From> <To>
  3. Check if files already exist.

    This will only check file names, not the actual content inside the files

    go run . <Sinlge or Multi> -check

    Check can be used on both Single and Multi mode.

    As of now, you need some other mode first to check downloaded files

  4. EPUB, compile all the downloaded txt files into epub file

    go run . <Sinlge or Multi> -epub true

    As of now, you need to run some other mode first to compile epub

gowebscraper's People

Contributors

finnthehero avatar

Watchers

 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.