panchira 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +28 -0
- data/LICENSE.txt +21 -0
- data/README.md +58 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/panchira.rb +45 -0
- data/lib/panchira/resolvers/dlsite_resolver.rb +11 -0
- data/lib/panchira/resolvers/komiflo_resolver.rb +39 -0
- data/lib/panchira/resolvers/melonbooks_resolver.rb +27 -0
- data/lib/panchira/resolvers/nijie_resolver.rb +27 -0
- data/lib/panchira/resolvers/pixiv_resolver.rb +30 -0
- data/lib/panchira/resolvers/resolver.rb +73 -0
- data/lib/panchira/version.rb +3 -0
- data/panchira.gemspec +38 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 33262427813457f3b76e1bcbd5df2366df59dc624880bed4fd9212811673fda4
|
4
|
+
data.tar.gz: 666cb85607eb81ce0ea134058a2a2cdfcb92f09db3f55baf955d1d9d431a2365
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d6618cb380b53cfec515e3b09f1f0a93f6779e55f148f900cea093d1f9f9ff53a40f5de9b7ac5f5458bfbbb1a22e3ba8880f0e975fcf6291b72287838871ca9f
|
7
|
+
data.tar.gz: 514cc09242a6df4d592a2deb8869db666d56e9c61cde0c79e3651b2004706eb4baf691b88fe0f4bfabac2669ac030bc815060e3fca0c68435da7a48d99b7c7f8
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
|
+
|
7
|
+
## 0.1.0 - 2020-05-13
|
8
|
+
### Added
|
9
|
+
- Released Panchira gem. At this time we can parse only 5 websites.
|
10
|
+
|
11
|
+
[0.1.0]: https://github.com/nuita/panchira/releases/tag/v0.1.0
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
panchira (0.1.0)
|
5
|
+
fastimage (~> 2.1.7)
|
6
|
+
nokogiri (~> 1.10.9)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
fastimage (2.1.7)
|
12
|
+
mini_portile2 (2.4.0)
|
13
|
+
minitest (5.14.0)
|
14
|
+
nokogiri (1.10.9)
|
15
|
+
mini_portile2 (~> 2.4.0)
|
16
|
+
rake (12.3.3)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
bundler (~> 2.0)
|
23
|
+
minitest (~> 5.0)
|
24
|
+
panchira!
|
25
|
+
rake (~> 12.3.3)
|
26
|
+
|
27
|
+
BUNDLED WITH
|
28
|
+
2.0.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 kyp
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
2
|
+
[![Build Status](https://travis-ci.org/nuita/panchira.svg?branch=master)](https://travis-ci.org/nuita/panchira.svg?branch=master)
|
3
|
+
|
4
|
+
# Panchira
|
5
|
+
|
6
|
+
Due to some legal or ethical issues, most hentai and NSFW platforms don't clarify their content on meta tags. As a result, most hentai platforms are rendered poorly on the card previews on social media.
|
7
|
+
|
8
|
+
To solve this issue, Panchira is made to parse correct and uncensored metadata from such web platforms (at this time we cover **DLSite, Komiflo, Melonbooks, Nijie and Pixiv**).
|
9
|
+
|
10
|
+
If you need card previews of hentai on your web application, but can't get them with simply parsing metatags, then it is time for Panchira.
|
11
|
+
|
12
|
+
This gem is derived from the [Nuita](https://github.com/nuita/nuita) project.
|
13
|
+
|
14
|
+
## Caution
|
15
|
+
|
16
|
+
**Please use this gem with appropriate censoring and age-restricting. Never violate local laws and copyrights.**
|
17
|
+
|
18
|
+
If you are running one of the websites we cover and feel negative about it, please contact the community or the author([@kypkyp](https://github.com/kypkyp)).
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
Add this line to your application's Gemfile:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
gem 'panchira'
|
26
|
+
```
|
27
|
+
|
28
|
+
And then execute:
|
29
|
+
|
30
|
+
$ bundle
|
31
|
+
|
32
|
+
Or install it yourself as:
|
33
|
+
|
34
|
+
$ gem install panchira
|
35
|
+
|
36
|
+
## Usage
|
37
|
+
|
38
|
+
```
|
39
|
+
> Panchira.fetch(“https://www.pixiv.net/artworks/61711172”)
|
40
|
+
|
41
|
+
=> {:canonical_url=>“https://pixiv.net/member_illust.php?mode=medium&illust_id=61711172”, :title=>“#輿水幸子 すずしい顔で締め切りを破る幸子 - むらためのイラスト - pixiv”, :description=>“(UTF16の)Pietで実行すると「すずしい」と出力する幸子(5色+白Pietカラーゴルフ)。解説記事は http://chy72.hatenablog.com/entry/2016/12/24/1”, :image=>{:url=>“https://pixiv.cat/61711172.jpg”, :width=>810, :height=>500}}
|
42
|
+
```
|
43
|
+
|
44
|
+
Panchira is in beta at this time and doesn't have stable API documentation yet.
|
45
|
+
|
46
|
+
## Development
|
47
|
+
|
48
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
49
|
+
|
50
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
51
|
+
|
52
|
+
## Contributing
|
53
|
+
|
54
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nuita/panchira.
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "panchira"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/panchira.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'nokogiri'
|
4
|
+
require 'open-uri'
|
5
|
+
require 'fastimage'
|
6
|
+
require 'json'
|
7
|
+
|
8
|
+
require 'panchira/version'
|
9
|
+
require 'panchira/resolvers/resolver'
|
10
|
+
require 'panchira/resolvers/dlsite_resolver'
|
11
|
+
require 'panchira/resolvers/komiflo_resolver'
|
12
|
+
require 'panchira/resolvers/melonbooks_resolver'
|
13
|
+
require 'panchira/resolvers/nijie_resolver'
|
14
|
+
require 'panchira/resolvers/pixiv_resolver'
|
15
|
+
|
16
|
+
# Main Panchira code goes here.
|
17
|
+
module Panchira
|
18
|
+
class << self
|
19
|
+
# Fetch the given URL and returns a hash that contains attributes of hentai.
|
20
|
+
def fetch(url)
|
21
|
+
resolver = select_resolver(url)
|
22
|
+
|
23
|
+
resolver.new(url).fetch
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def select_resolver(url)
|
29
|
+
case url
|
30
|
+
when %r{komiflo\.com(?:/#!)?/comics/(\d+)}
|
31
|
+
Panchira::KomifloResolver
|
32
|
+
when %r{melonbooks.co.jp/detail/detail.php\?product_id=(\d+)}
|
33
|
+
Panchira::MelonbooksResolver
|
34
|
+
when %r{pixiv\.net/(member_illust.php?.*illust_id=|artworks/)(\d+)}
|
35
|
+
Panchira::PixivResolver
|
36
|
+
when /nijie.*view.*id=\d+/
|
37
|
+
Panchira::NijieResolver
|
38
|
+
when /dlsite/
|
39
|
+
Panchira::DlsiteResolver
|
40
|
+
else
|
41
|
+
Panchira::Resolver
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Panchira
|
4
|
+
# KomifloResolver resolves Komiflo.
|
5
|
+
# Komiflo has its API server, so we can utilize it.
|
6
|
+
class KomifloResolver < Resolver
|
7
|
+
def initialize(url)
|
8
|
+
@url = url
|
9
|
+
|
10
|
+
@id = url.slice(%r{komiflo\.com(?:/#!)?/comics/(\d+)}, 1)
|
11
|
+
json_uri = URI.parse("https://api.komiflo.com/content/id/#{@id}")
|
12
|
+
@json = JSON.parse(Net::HTTP.get(json_uri))
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def parse_title
|
18
|
+
comic_title = @json['content']['data']['title']
|
19
|
+
"#{comic_title} | Komiflo"
|
20
|
+
end
|
21
|
+
|
22
|
+
def parse_image_url
|
23
|
+
'https://t.komiflo.com/564_mobile_large_3x/' + @json['content']['named_imgs']['cover']['filename']
|
24
|
+
end
|
25
|
+
|
26
|
+
def parse_description
|
27
|
+
author = @json['content']['attributes']['artists']['children'][0]['data']['name']
|
28
|
+
|
29
|
+
parent = @json['content']['parents'][0]['data']['title']
|
30
|
+
description = '著: ' + author if author
|
31
|
+
description += " / #{parent}" if parent
|
32
|
+
end
|
33
|
+
|
34
|
+
def parse_canonical_url
|
35
|
+
id = @url.slice(%r{komiflo\.com(?:/#!)?/comics/(\d+)}, 1)
|
36
|
+
'https://komiflo.com/comics/' + id
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Panchira
|
4
|
+
class MelonbooksResolver < Resolver
|
5
|
+
private
|
6
|
+
|
7
|
+
def parse_canonical_url
|
8
|
+
product_id = @url.slice(%r{melonbooks.co.jp/detail/detail.php\?product_id=(\d+)}, 1)
|
9
|
+
'https://www.melonbooks.co.jp/detail/detail.php?product_id=' + product_id + '&adult_view=1'
|
10
|
+
end
|
11
|
+
|
12
|
+
def parse_description
|
13
|
+
# スタッフの紹介文でidが分岐
|
14
|
+
special_description = @page.xpath('//div[@id="special_description"]//p/text()')
|
15
|
+
if special_description.any?
|
16
|
+
special_description.first.to_s
|
17
|
+
else
|
18
|
+
description = @page.xpath('//div[@id="description"]//p/text()')
|
19
|
+
description.first.to_s
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def parse_image_url
|
24
|
+
@page.css('//meta[property="og:image"]/@content').first.to_s.sub(/&c=1/, '')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Panchira
|
4
|
+
class NijieResolver < Resolver
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
def parse_canonical_url
|
9
|
+
@url.sub(/sp.nijie/, 'nijie').sub(/view_popup/, 'view')
|
10
|
+
end
|
11
|
+
|
12
|
+
def parse_image_url
|
13
|
+
str = @page.css('//script[@type="application/ld+json"]/text()').first.to_s
|
14
|
+
|
15
|
+
if s = str.match(%r{https://pic.nijie.(net|info)/(?<servername>\d+)/[^/]+/nijie_picture/(?<imagename>[^"]+)})
|
16
|
+
# 動画は容量大きすぎるし取らない
|
17
|
+
if s[:imagename] =~ /(jpg|png)/
|
18
|
+
'https://pic.nijie.net/' + s[:servername] + '/nijie_picture/' + s[:imagename]
|
19
|
+
else
|
20
|
+
s[0]
|
21
|
+
end
|
22
|
+
else
|
23
|
+
@page.css('//meta[property="og:image"]/@content').first.to_s
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Panchira
|
4
|
+
class PixivResolver < Resolver
|
5
|
+
def initialize(url)
|
6
|
+
super(url)
|
7
|
+
@illust_id = url.slice(%r{pixiv\.net/(member_illust.php?.*illust_id=|artworks/)(\d+)}, 2)
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def parse_canonical_url
|
13
|
+
illust_id = @url.slice(%r{pixiv\.net/(member_illust.php?.*illust_id=|artworks/)(\d+)}, 2)
|
14
|
+
'https://pixiv.net/member_illust.php?mode=medium&illust_id=' + illust_id
|
15
|
+
end
|
16
|
+
|
17
|
+
def parse_image_url
|
18
|
+
proxy_url = "https://pixiv.cat/#{@illust_id}.jpg"
|
19
|
+
|
20
|
+
case Net::HTTP.get_response(URI.parse(proxy_url))
|
21
|
+
when Net::HTTPNotFound
|
22
|
+
proxy_url = "https://pixiv.cat/#{@illust_id}-1.jpg"
|
23
|
+
end
|
24
|
+
|
25
|
+
proxy_url
|
26
|
+
rescue StandardError
|
27
|
+
@page.css('//meta[property="og:image"]/@content').first.to_s
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Resolver is a class that actually GET url and resolve attributes.
|
4
|
+
# This class is the default resolver for pages,
|
5
|
+
# and is inherited by the other resolvers.
|
6
|
+
module Panchira
|
7
|
+
class Resolver
|
8
|
+
def initialize(url)
|
9
|
+
@url = url
|
10
|
+
end
|
11
|
+
|
12
|
+
def fetch
|
13
|
+
attributes = {}
|
14
|
+
|
15
|
+
@page = fetch_page(@url)
|
16
|
+
attributes[:canonical_url] = parse_canonical_url
|
17
|
+
|
18
|
+
if @url != attributes[:canonical_url]
|
19
|
+
@page = fetch_page(attributes[:canonical_url])
|
20
|
+
end
|
21
|
+
|
22
|
+
attributes[:title] = parse_title
|
23
|
+
attributes[:description] = parse_description
|
24
|
+
attributes[:image] = parse_image
|
25
|
+
|
26
|
+
attributes
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def fetch_page(url)
|
32
|
+
raw_page = URI.parse(url).read
|
33
|
+
charset = raw_page.charset
|
34
|
+
Nokogiri::HTML.parse(raw_page, url, charset)
|
35
|
+
end
|
36
|
+
|
37
|
+
def parse_canonical_url
|
38
|
+
if (canonical_url = @page.css('//link[rel="canonical"]/@href')).any?
|
39
|
+
canonical_url.to_s
|
40
|
+
else
|
41
|
+
@url
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def parse_title
|
46
|
+
if @page.css('//meta[property="og:title"]/@content').empty?
|
47
|
+
@page.title.to_s
|
48
|
+
else
|
49
|
+
@page.css('//meta[property="og:title"]/@content').to_s
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def parse_description
|
54
|
+
if @page.css('//meta[property="og:description"]/@content').empty?
|
55
|
+
@page.css('//meta[name$="description"]/@content').to_s
|
56
|
+
else
|
57
|
+
@page.css('//meta[property="og:description"]/@content').to_s
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def parse_image
|
62
|
+
image = {}
|
63
|
+
image[:url] = parse_image_url
|
64
|
+
image[:width], image[:height] = FastImage.size(image[:url])
|
65
|
+
|
66
|
+
image
|
67
|
+
end
|
68
|
+
|
69
|
+
def parse_image_url
|
70
|
+
@page.css('//meta[property="og:image"]/@content').first.to_s
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
data/panchira.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "panchira/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "panchira"
|
7
|
+
spec.version = Panchira::VERSION
|
8
|
+
spec.authors = ["kyp"]
|
9
|
+
spec.email = ["kyp@kmc.gr.jp"]
|
10
|
+
|
11
|
+
spec.summary = "A parser for hentai websites"
|
12
|
+
spec.description = <<-TEXT
|
13
|
+
Panchira allows you to parse attributes of hentais on some web platforms, such as Pixiv and DLSite.
|
14
|
+
If you need card previews on hentai but can't get it with simply parsing metatags, then it is time for Panchira.
|
15
|
+
TEXT
|
16
|
+
spec.homepage = "https://github.com/nuita/panchira"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/nuita/panchira"
|
21
|
+
spec.metadata["changelog_uri"] = "https://github.com/nuita/panchira/blob/master/CHANGELOG.md"
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
26
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
33
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
34
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
+
|
36
|
+
spec.add_dependency "nokogiri", "~> 1.10.9"
|
37
|
+
spec.add_dependency "fastimage", "~> 2.1.7"
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: panchira
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kyp
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 12.3.3
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 12.3.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.10.9
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.10.9
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: fastimage
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.1.7
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.1.7
|
83
|
+
description: |2
|
84
|
+
Panchira allows you to parse attributes of hentais on some web platforms, such as Pixiv and DLSite.
|
85
|
+
If you need card previews on hentai but can't get it with simply parsing metatags, then it is time for Panchira.
|
86
|
+
email:
|
87
|
+
- kyp@kmc.gr.jp
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CHANGELOG.md
|
95
|
+
- Gemfile
|
96
|
+
- Gemfile.lock
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- bin/console
|
101
|
+
- bin/setup
|
102
|
+
- lib/panchira.rb
|
103
|
+
- lib/panchira/resolvers/dlsite_resolver.rb
|
104
|
+
- lib/panchira/resolvers/komiflo_resolver.rb
|
105
|
+
- lib/panchira/resolvers/melonbooks_resolver.rb
|
106
|
+
- lib/panchira/resolvers/nijie_resolver.rb
|
107
|
+
- lib/panchira/resolvers/pixiv_resolver.rb
|
108
|
+
- lib/panchira/resolvers/resolver.rb
|
109
|
+
- lib/panchira/version.rb
|
110
|
+
- panchira.gemspec
|
111
|
+
homepage: https://github.com/nuita/panchira
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata:
|
115
|
+
homepage_uri: https://github.com/nuita/panchira
|
116
|
+
source_code_uri: https://github.com/nuita/panchira
|
117
|
+
changelog_uri: https://github.com/nuita/panchira/blob/master/CHANGELOG.md
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubygems_version: 3.0.3
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: A parser for hentai websites
|
137
|
+
test_files: []
|