:us: :jp:
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')
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request