stylemooncat 0.0.11 → 0.0.12
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/stylemooncat/scraper.rb +3 -3
- 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: dee1ffe0ec74b7633ec68bcf718a0ea3bc2a6a59
|
4
|
+
data.tar.gz: 91e5b2876c0faff356d7ba56f74f8b82a28baf6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0983c600b039fb67575d6f0d6f5844569eb0feea4ce7fba5683ce024aba1d67f61c72990f86829e0a8e5db8f73627ece2912d6168159b75de71ecb289d501740
|
7
|
+
data.tar.gz: 5defdbe9062be5f4f39b7ee9d814ff745f530b9a4020320cab2d5b351c228bae6414440bd79c580f4a0573c59fa6060e2db253c83274bf2a4df3652083705204
|
data/lib/stylemooncat/scraper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'oga'
|
3
|
-
require 'iconv'
|
3
|
+
#require 'iconv'
|
4
4
|
require 'open-uri'
|
5
5
|
|
6
6
|
# scrape data
|
@@ -133,9 +133,9 @@ module StyleMoonCat
|
|
133
133
|
|
134
134
|
# Iconv is neccessary here otherwise text is unreadable
|
135
135
|
def extract_title(item)
|
136
|
-
|
136
|
+
# ic = Iconv.new('UTF-8','big5')
|
137
137
|
raw_title = item.xpath(TITLE_SELECTOR).text
|
138
|
-
|
138
|
+
# ic.iconv(raw_title)
|
139
139
|
end
|
140
140
|
|
141
141
|
# get rid of the NT and convert to integer
|