relaton-gb 1.18.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_gb/sec_scrapper.rb +2 -2
- data/lib/relaton_gb/version.rb +1 -1
- data/lib/relaton_gb/yaml/prefixes.yaml +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a44c8b9396c30bc3aa644a45da432d5327bff2954af18af1f22fbe416b694b38
|
4
|
+
data.tar.gz: c9a157c81de458c6d76c8980a1f68cadb222b3c1a1ef1e8e8ae6de4e005cd739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 322268f34b944fdccc2b0500fd599a9866e28ee84123b8990d34a032d6321909a509991c75c781dbd91afc50eb9b72e29c3b6c7c0cbf9bbd413ee4e07dbea35f
|
7
|
+
data.tar.gz: ac2e1c9efc5df285e1f11f792e62b45241f615ed579017d1365738cda504143c53925ff3d4baee89389198554d8ce99e9a6a27d5d50f89e3b36b5dbfac2b15a8
|
@@ -19,7 +19,7 @@ module RelatonGb
|
|
19
19
|
# @return [RelatonGb::HitCollection]
|
20
20
|
def scrape_page(text)
|
21
21
|
# uri = URI "http://www.std.gov.cn/hb/search/hbPage?searchText=#{text}"
|
22
|
-
uri = URI "
|
22
|
+
uri = URI "https://hbba.sacinfo.org.cn/stdQueryList"
|
23
23
|
resp = Net::HTTP.post uri, URI.encode_www_form({ key: text })
|
24
24
|
# res = JSON.parse Net::HTTP.get(uri)
|
25
25
|
json = JSON.parse resp.body
|
@@ -39,7 +39,7 @@ module RelatonGb
|
|
39
39
|
# @param hit [RelatonGb::Hit]
|
40
40
|
# @return [RelatonGb::GbBibliographicItem]
|
41
41
|
def scrape_doc(hit)
|
42
|
-
src = "
|
42
|
+
src = "https://hbba.sacinfo.org.cn/stdDetail/#{hit.pid}"
|
43
43
|
page_uri = URI src
|
44
44
|
doc = Nokogiri::HTML Net::HTTP.get(page_uri)
|
45
45
|
GbBibliographicItem.new(**scrapped_data(doc, src, hit))
|
data/lib/relaton_gb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-gb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cnccs
|