Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dmm-crawler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmm-crawler

  • 0.4.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

:us: :jp: Build Status Gem Version Build Status Code Climate Gem

DMM Crawler

:warning: Cation :warning:

FANZA does not accept crawling pages so I don't recommend to use this gem.

I do not take any responsibility or liability for any damage or loss caused by mine gem.

What is DMM Crawler

Show DMM and DMM.R18's crawled data. Now, All rankings for doujin is crawlable.

Installation

On your gemfile.

gem 'dmm-crawler'

Usage

DMM.R18 Doujin Ranking

require 'dmm-crawler'

include DMMCrawler

client = Client.new do |agent|
  agent.ignore_bad_chunking = false
end

client.rankings(term: '24', submedia: 'cg')
# =>
# {
#   title: "title",
#   title_link: "title url",
#   image_url: "Link to title"s main image",
#   submedia: "cg",
#   author: "author",
#   informations: [{key: 'key', value: 'value'}],
#   rank: '1'
#   tags: ["tag1", "tag2"]
# }

For example, Above command will show the doujin cg 24's ranking.

Available arguments
  • Arguments for the term is able to use all, comic, cg, game, voice.
  • Arguments for the submedia is able to use 24, weekly, monthly, total.

From an art's URL

require 'dmm-crawler'

include DMMCrawler

client = Client.new do |agent|
  agent.ignore_bad_chunking = false
end

URL = 'https://www.dmm.co.jp/dc/doujin/-/detail/=/cid=d_087090'

client.get_attributes(URL)
# =>
# [
# ...
# ]

It returns art information by Array.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 25 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc