effscraper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/effscraper.rb +8 -6
  2. metadata +1 -1
data/lib/effscraper.rb CHANGED
@@ -50,18 +50,20 @@ class EFFScraper
50
50
  dochash[:path] = path[path.length-1].chomp.strip
51
51
  end
52
52
  end
53
- print
54
53
 
55
54
  # Get date and title
56
55
  dochash[:doc_date] = l.css("span.date-display-single").text
57
56
  dochash[:title] = l.css("a")[1].text
58
57
 
59
58
  # Extract metadata and text
60
- u = UploadConvert.new(dochash[:path])
61
- metadata = u.extractMetadataPDF
62
- metadata.each{|k, v| dochash[k] = v}
63
- dochash[:text] = u.detectPDFType
64
- @casearray.push(dochash)
59
+ begin
60
+ u = UploadConvert.new(dochash[:path])
61
+ metadata = u.extractMetadataPDF
62
+ metadata.each{|k, v| dochash[k] = v}
63
+ dochash[:text] = u.detectPDFType
64
+ @casearray.push(dochash)
65
+ rescue
66
+ end
65
67
  end
66
68
  end
67
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effscraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: