art_paintings_extractor 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01c7d36fa1b8466193ae8c358abd90dce3fd6dacfee88c8cc34bb7f2ed24c93d
4
- data.tar.gz: 13fba3e719874ad333b48aeeba19d4cb464de4d67737ba8d833b1be5c39782d6
3
+ metadata.gz: 395465129725160cb86c033ddd969b31f4f4c053bbfbbc97aee6cb40029e958f
4
+ data.tar.gz: f5acff0f29b987ed23fa16865aea46bc1edfe6462db815ace7545b52bcf1138a
5
5
  SHA512:
6
- metadata.gz: '08fa92692f261ee49d001cbd66219a766661ce74280fc7b2791d0fa8d0ce6f514199afe203a8a9631441fab15e253a6944c061275000b190c55fa19559478b52'
7
- data.tar.gz: 198f0ac16dd2b32fcfc5672110fd49594c34f8515bc9a0860421c895da2393ae71981a1f5f3c22d0294ab197e7999066155c3c01383b9abea48594759e30e597
6
+ metadata.gz: 5fde92228c7fd05d13958838e0b1090f0e9e5d8362f2cb588a186619950d3f83bbefd6284e9549c7d83dfb73643381a3e983f08b5a63c471a737d33f323ab7f7
7
+ data.tar.gz: ae31e4b540c7da3a8677b80c2cb49701530fc0191a2bb62b70bedd256b7ba8f707cc61b90895e70be5dd9e2c32dd160bf7e7982af4f2e440234cfd7e4c02b102
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ArtPaintingsExtractor
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/run_extractor.rb CHANGED
@@ -1,19 +1,10 @@
1
- # run_extractor.rb
1
+ require 'nokogiri'
2
2
 
3
- require_relative "lib/art_paintings_extractor"
3
+ require_relative "lib/art_paintings"
4
4
 
5
- # Path to the HTML file you want to parse
6
5
  html_file = "./files/van-gogh-paintings.html"
7
6
 
8
- # Output JSON file
9
- # output_file = 'files/extracted_paintings.json'
10
-
11
- # Create an instance of the extractor
12
7
  extractor = ArtPaintingsExtractor::ArtPaintings.new(html_file)
13
8
 
14
- # Extract paintings and print them
15
9
  paintings = extractor.extract_paintings
16
- puts paintings
17
-
18
- # Save paintings to a JSON file
19
- # extractor.save_to_file(output_file)
10
+ puts paintings
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: art_paintings_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovan