harunica 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/harunica/scraping/list_page.rb +3 -3
- data/lib/harunica/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d932bdfc49d9fb6140d19355f16794a570600f5e
|
4
|
+
data.tar.gz: 936a76ce65e359d8d55d53a030b5c3bc0981943a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2474aea0a8d0e19ba4e95bae685e8b2659658ae743b44d06dbfc55fd456622ab5ee82c85201e7feec1eca07049478447506188d9bf41dc391683402ec6ac8720
|
7
|
+
data.tar.gz: 55120c926c410fc369a2982bfaed020cdd9d87b2a85aefe9c017767a9436d2cdb97d9ba23213b24de3689d7b6f7c39bb86dbb4a5b3be745f871ac8375d9bf1a6
|
@@ -3,7 +3,7 @@ require 'nokogiri'
|
|
3
3
|
module Harunica
|
4
4
|
module Scraping
|
5
5
|
class ListPage
|
6
|
-
|
6
|
+
DEFAULT_URL = "http://www.nicovideo.jp/tag/#{ ::URI.escape('春ニカ祭') }2015"
|
7
7
|
|
8
8
|
VIDEO_SELECTORS = [
|
9
9
|
'.container',
|
@@ -24,8 +24,8 @@ module Harunica
|
|
24
24
|
|
25
25
|
attr_reader :html
|
26
26
|
|
27
|
-
def initialize(html)
|
28
|
-
@html = html || Html.new(
|
27
|
+
def initialize(html = nil)
|
28
|
+
@html = html || Html.new(DEFAULT_URL)
|
29
29
|
end
|
30
30
|
|
31
31
|
def video_pages
|
data/lib/harunica/version.rb
CHANGED