Giter Club home page Giter Club logo

manga-mirror's Introduction

Manga-Mirror

mangareader.net crawler.

Build

$ make

It builds an executable under $GOPATH/bin/ named manga-mirror.

Usage

Parameters:

  -db [string]
	   Path for crawler sync index (default "_mrdb")
  -dir [string]
    	Path to store downlaoded media (default "_media")
  -url [string]
    	Web URL to crawl for media
  -filter [string]
    	Regex pattern to filter URIs, e.g. 'mangareader.net|naruto'
  -log [string]
    	log file name, for logging (default STDOUT)
  -user-agent string
    	UserAgent for HTTP HEADER (default "mng-rdr")
$ manga-mirror -url [some-manga-url] -filter [some-regex-pattern]

Misc

This crawler can be used to crawl other sites, and download images. Though it is ever hardly used or tested at that task. Note that this crawler respects robots.txt configurations on which paths can be crawled, but not on the crawling interval.

manga-mirror's People

Contributors

guidj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

manga-mirror's Issues

Image done queue is not processed

The image done queue is not handled by the OperateNotifier function in main. After a while, the buffer fills in the channel, and the crawler stops downloading images

Avoid repeated crawling

Some pages are crawled multiple times, because they're added to the queue channel everything they're encountered by the crawler and haven't yet been processed.

To avoid this, once an URI is added to the waiting queue, it should be registered to the DB with INQ state.
This way we avoid duplicate entries to the waiting queue
Once processed, we can mark the URI as DONE

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.