arxiv-references 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 572c835aeb2f46e94a5ef6a14344d1ba5d69cc7b
|
4
|
+
data.tar.gz: ac5a480450dd8aaf65b700cacf9d1974498ff99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca33ba794a7af28fe4504e201dd2d328bb82c524ae892d41057fdb17697981638067518beaef9a0251910bfb3435bf3c8caaa3b51c0b369b551e01b2db3ee37
|
7
|
+
data.tar.gz: c3dd5c93e659ccc2e5abee5ab9abab605d7673fb5c914afcebf10be4f8b5186aaacf0cbb427a867d5305597ca4e689ca768e34e29d363910bc9d06397345b6ec
|
@@ -12,17 +12,17 @@ module ArxivReferences
|
|
12
12
|
include ArxivUtil
|
13
13
|
desc 'url', 'Extract references from arxiv URL'
|
14
14
|
def url(urlName)
|
15
|
-
|
15
|
+
puts ArxivUtil.fetchFromUrl(urlName)
|
16
16
|
end
|
17
17
|
|
18
18
|
desc 'id', 'Extract references from Arxiv id'
|
19
19
|
def arxivid(idName)
|
20
|
-
|
20
|
+
puts ArxivUtil.fetchFromArxivId(idName)
|
21
21
|
end
|
22
22
|
|
23
23
|
desc 'pdfurl', 'Extract references from pdf URL'
|
24
24
|
def pdfurl(pdfUrlName)
|
25
|
-
|
25
|
+
puts ArxivUtil.fetchFromPdfUrl(pdfUrlName)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -47,7 +47,7 @@ module ArxivUtil
|
|
47
47
|
result[:abstruct] = page.xpath('//*[@id="abs"]/div[2]/blockquote').text
|
48
48
|
result[:pdfurl] = "#{BASE_URL}#{page.xpath('//*[@id="abs"]/div[1]/div[1]/ul/li[1]/a').attr('href').value}"
|
49
49
|
result[:references] = fetchFromPdfUrl(result[:pdfurl])
|
50
|
-
|
50
|
+
return result.to_json
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.fetchFromArxivId(id)
|