Giter VIP home page Giter VIP logo

mangasync's Introduction

Mangasync

A simple ruby script to download your favorite manga chapters to your machine so that you can read them in your free time.

Instructions on usage

  1. git clone https://github.com/vidyuthd/mangasync
  2. cd mangasync
  3. ruby manga_sync.rb

Sample Output

  input series name : one-piece
  input start chapter no : 791
  input end chapter no(if you need only one chapter, the leave this blank by pressing enter or give same
        value as start chapter) :
    input manga source by number (this can be mangapanda,mangareader,mangafox,mangajoy,mangasee,mangatown,readmanga -leave this blank
        if you are not sure by pressing enter button):
   "hitting url:  http://mangareader.net/one-piece/791/1"
   "hitting url:  http://mangareader.net/one-piece/791/2"
   "hitting url:  http://mangareader.net/one-piece/791/3"
   "hitting url:  http://mangareader.net/one-piece/791/4"
   "hitting url:  http://mangareader.net/one-piece/791/5"
   "hitting url:  http://mangareader.net/one-piece/791/6"
   "hitting url:  http://mangareader.net/one-piece/791/7"
   "hitting url:  http://mangareader.net/one-piece/791/8"
   "hitting url:  http://mangareader.net/one-piece/791/9"
   "hitting url:  http://mangareader.net/one-piece/791/10"
   "hitting url:  http://mangareader.net/one-piece/791/11"
   "hitting url:  http://mangareader.net/one-piece/791/12"
   "hitting url:  http://mangareader.net/one-piece/791/13"
   "hitting url:  http://mangareader.net/one-piece/791/14"
   "hitting url:  http://mangareader.net/one-piece/791/15"
   "hitting url:  http://mangareader.net/one-piece/791/16"
   404 Not Found
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:716:in `open'
   C:/Ruby22/lib/ruby/2.2.0/open-uri.rb:34:in `open'
   manga_sync_v2.rb:46:in `method'
   manga_sync_v2.rb:71:in `block in getThread'
   Total time taken(in seconds) is 38.583858

Prerequisites

  1. Have ruby installed on your machine.
  2. If not install ruby

mangasync's People

Contributors

vidyuthd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mangasync's Issues

undefined local variable or method `secondary_regex' for #<MangaSync:0x1696188> (NameError)

I'm currently unable to download any manga due to a NameError. I've tried several manga and/or source

# ruby manga_sync.rb
manga_sync.rb:105: warning: else without rescue is useless
input series name : toriko
input start chapter no : 334
input end chapter no(if you need only one chapter, the leave this blank by pressing enter or give same
    value as start chapter) : 334
input manga source by number (this can either of be mangapanda,mangareader,mangafox,mangajoy,mangasee,mangatown,readmanga,mangafreak,mangahere,mangahit -leave this blank
    if you are not sure by pressing enter button): mangahit
"http://www.mangahit.com/toriko/334/1"
"hitting url:  http://www.mangahit.com/toriko/334/1"
manga_sync.rb:58:in `block (2 levels) in method': undefined local variable or method `secondary_regex' for #<MangaSync:0x1696188> (NameError)
        from manga_sync.rb:57:in `block in method'
        from /usr/lib/ruby/1.9.1/open-uri.rb:150:in `open_uri'
        from /usr/lib/ruby/1.9.1/open-uri.rb:677:in `open'
        from /usr/lib/ruby/1.9.1/open-uri.rb:33:in `open'
        from manga_sync.rb:53:in `method'
        from manga_sync.rb:77:in `block in getThread'
# ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [arm-linux-eabihf]
# git log -1
commit cbab675b762424725ed61c9b125ffac49c6c5738
Author: vidyuthd <[email protected]>
Date:   Fri Jul 3 22:25:28 2015 +0530

    1.Adding  source mangahit.com
    2. adding a prompt for creating dir(series & chapter)

mangahere source

  1. running in an infinite loop while downloading pages
  2. some licensed manga is not available on mangahere, need to handle it

Mangatown need to add volume left,right adjust and chapter left right adjust config params

currently the other thing which uses volume is mangafox there is its 3 digit padded like v006,v007 where as in mangatown its 2 digit padded - v06,v07.

Also the chapter is inverse . in mangafox its not strictly 3 digit padded like 007 , even if we give 7 it automatically redirects to 007 whereas for mangatown it doesn't happen its strictly 3 digit padded .

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.