Git Product home page Git Product logo

lightnovelsniffer-cli's Introduction

LightNovelSniffer

C# .Net 4.5 Web crawler to create PDF and Epub version of online light novels.

This is a core library. It will need a proper interface to work. For now, there is only a CLI available. A GUI is planned but haven't been started yet (feel free to join the adventure !)

Instructions

Entry Point

You program need to call the ConfigTools.InitConf function with the Config.xml filename to load the default parameters, and initialize global variables. You can call the function multiple times with different files to override values. When it's done, call ConfigTools.InitLightNovels function with the LightNovels.xml filename to load the LN list. You can call this function multiple times with different files. By default it will add LNs to a global list. If you call the function with true as the second parameter, the list will be cleared before file import.

Then, use the WebCrawler class as entry point to download chapters (either defined in the LightNovels.xml or LightNovels_user.xml file, or dynamically instantiated in your program)

Communication

To allow the library to interact with the user or an external programm (ask information, or output some progress), classes implementing the IInput and IOutput interface are required for the WebCrawler constructor.

Parser

New parsers (to handle new websites) can be added either to this project in the Web/Parser folder with a pull request, or dynamically loaded in the ParserFactory. In any case, classes need to implement the IParser interface.

Translations

Translations can be added to the project by adding a Strings.**Code**.resx file to Resource folder (where Code is a CultureInfo code like "en-US" or "fr-FR"...). Feel free to submit your corrections, suggestions or addition in a PR.

Dependencies

Web parser

Web parser use HtmlAgilityPack to parse string to HtmlNodes.

Epub

The library Ionic.Zip.dll is part of the DotNetZip library which have been cloned in this repo because of some needed modification

PDF

PDF files are generated by the iTextSharp library

lightnovelsniffer-cli's People

Contributors

joshuaarus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

fossabot

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.