During this period, Richter created paintings that were based on photographs he collected, such as Party (1963) and Women Descending the Staircase (1965). His ...Read more
https://www.depont.nl › Home › Collection › Artists
His work is an exploration of the possibilities which painting still holds. Richter originally regarded his grey paintings, produced between 1968 and 1976, as ...Read more
Explore Gerhard Richter's biography, achievements, artworks, auction results, and shows on Artsy. One of the most famous artists to emerge from post-war ...
8 Jan 2026 — From photorealism to abstraction, discover the iconic work of German Post-War artist Gerhard Richter by taking a look at his 10 most famous ...
Gerhard Richter | Buy, Sell & Discover entire catalogue of authentic prints, originals, sculptures, collectibles and books online at the best price ...
https://www.mutualart.com › Artist › Gerhard-Richter
Stay up to date with Gerhard Richter (German, 1932), APT artist. Discover works for sale, auction results, market data, news and exhibitions on MutualArt.
\ No newline at end of file
diff --git a/files/rene-magritte-paintings.html b/files/rene-magritte-paintings.html
new file mode 100644
index 00000000..4493b1f8
--- /dev/null
+++ b/files/rene-magritte-paintings.html
@@ -0,0 +1,51 @@
+René Magritte paintings - Google Search
A Belgian surrealist painter, Rene Magritte's witty and thought-provoking paintings sought to have viewers question their perceptions of reality.Read more
Masterpieces of René Magritte. Young Girl Eating a Bird, 1927. The Lovers I, 1928. The Lovers II, 1928. Attempting the Impossible, 1928. The False Mirror, 1928.Read more
Images
Rene Magritte: The Fifth Season · SFMOMA
SFMOMA
The art of living, 1967, 54×65 cm by René Magritte: History ...
Arthive
Classic Rene Magritte Surrealism Canvas Paintings Gallery Portrait Posters and Prints Pictures for Interior Wall Decor 40x55cm frameless : Amazon.nl: ...
René François Ghislain Magritte was a Belgian surrealist artist known for his depictions of familiar objects in unfamiliar, unexpected contexts, which often provoked questions about the nature and boundaries of reality and representation. His imagery has influenced pop art, minimalist art, and conceptual art.Wikipedia
Selected list of works · 1920 Landscape · 1922 The Station and L'Écuyère · 1923 Self-portrait, Sixth Nocturne, Georgette at the Piano and Donna · 1925 The Bather ...Read more
The Musée Magritte Museum not only holds the largest collection of works by the famous Belgian Surrealist but also the most important collection of works ...Read more
21 Nov 2025 — René Magritte in 10 Paintings · 1. The Lovers, 1928 · 2. The Treachery of Images, 1929 · 3. The False Mirror, 1929 · 4. Not to Be Reproduced, ...Read more
Table of contents · Key moments in Magritte's life · 1. The Son of Man and the symbolic apple · 2. The Lovers II, a mournful kiss · 3. The Treachery of Images, an ...Read more
\ No newline at end of file
diff --git a/lib/file_scraper.rb b/lib/file_scraper.rb
new file mode 100644
index 00000000..de64bfe1
--- /dev/null
+++ b/lib/file_scraper.rb
@@ -0,0 +1,53 @@
+# frozen_string_literal: true
+
+require "ferrum"
+require "json"
+require "nokogiri"
+
+class FileScraper
+ DOMAIN_NAME = "https://www.google.com"
+
+ def self.run(file_path)
+ html = extract_html(file_path)
+
+ document = Nokogiri::HTML(html)
+
+ artworks = document.css("g-loading-icon + div").children
+
+ result = artworks.map do |artwork|
+ extensions = artwork.css("img + div").children.map do |extension|
+ extension.text if extension && !extension.text.empty?
+ end
+ name = extensions.shift
+ relative_path = artwork.at("a")["href"]
+ data_image = artwork.at("img")["data-src"]
+ src_image = artwork.at("img")["src"]
+ {
+ name:,
+ extensions: (extensions unless extensions.compact.empty?),
+ link: DOMAIN_NAME + relative_path,
+ image: data_image || src_image,
+ }.compact
+ end
+
+ JSON.generate(artworks: result)
+ end
+
+ private
+
+ def self.extract_html(file_path)
+ file_extension = file_path.split(".").last
+
+ raise "Please use an HTML file" unless file_extension == "html"
+
+ begin
+ # Note: Ferrum uses a Chrome or Chromium driver – you need to have one of these installed.
+ # Docs: https://docs.rubycdp.com/docs/ferrum/introduction/
+ browser = Ferrum::Browser.new
+ browser.go_to("file:///#{File.expand_path(file_path)}")
+ browser.body
+ ensure
+ browser.quit
+ end
+ end
+end
diff --git a/spec/file_scraper_spec.rb b/spec/file_scraper_spec.rb
new file mode 100644
index 00000000..b8aaffd2
--- /dev/null
+++ b/spec/file_scraper_spec.rb
@@ -0,0 +1,62 @@
+# frozen_string_literal: true
+
+require "file_scraper"
+
+RSpec.describe FileScraper do
+ FILE_PATHS = [
+ "./files/van-gogh-paintings.html",
+ "./files/rene-magritte-paintings.html",
+ "./files/gerhard-richter-paintings.html",
+ ]
+
+ FILE_PATHS.each do |file_path|
+ context "using #{file_path}" do
+ before :all do
+ json_response = FileScraper.run(file_path)
+ @response = JSON.parse(json_response)
+ end
+
+ let(:expected_response) { JSON.parse(File.read("./files/expected-array.json")) }
+
+ it "contains artworks array" do
+ expect(@response["artworks"]).to be_a(Array)
+ end
+
+ it "artworks – name" do
+ expect(@response["artworks"].first["name"]).to be_a(String)
+ expect(@response["artworks"].first["name"]).not_to be_empty
+ end
+
+ it "artworks – extensions" do
+ expect(@response["artworks"].first["extensions"]).to be_a(Array)
+ end
+
+ it "artworks – link" do
+ expect(@response["artworks"].first["link"]).to be_a(String)
+ expect(@response["artworks"].first["link"]).not_to be_empty
+ end
+
+ context "with thumbnail" do
+ it "artworks – image" do
+ expect(@response["artworks"].first["image"]).to be_a(String)
+ expect(@response["artworks"].first["image"]).not_to be_empty
+ end
+ end
+
+ context "without thumbnail" do
+ it "artworks – image" do
+ expect(@response["artworks"].last["image"]).to be_a(String)
+ expect(@response["artworks"].last["image"]).not_to be_empty
+ end
+ end
+
+ if file_path == "./files/van-gogh-paintings.html"
+ it "produces the expected response" do
+ @response["artworks"].each.with_index do |artwork, index|
+ expect(artwork).to eq(expected_response["artworks"][index])
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 00000000..c80d44b9
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,98 @@
+# This file was generated by the `rspec --init` command. Conventionally, all
+# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
+# The generated `.rspec` file contains `--require spec_helper` which will cause
+# this file to always be loaded, without a need to explicitly require it in any
+# files.
+#
+# Given that it is always loaded, you are encouraged to keep this file as
+# light-weight as possible. Requiring heavyweight dependencies from this file
+# will add to the boot time of your test suite on EVERY test run, even for an
+# individual file that may not need all of that loaded. Instead, consider making
+# a separate helper file that requires the additional dependencies and performs
+# the additional setup, and require it from the spec files that actually need
+# it.
+#
+# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+RSpec.configure do |config|
+ # rspec-expectations config goes here. You can use an alternate
+ # assertion/expectation library such as wrong or the stdlib/minitest
+ # assertions if you prefer.
+ config.expect_with :rspec do |expectations|
+ # This option will default to `true` in RSpec 4. It makes the `description`
+ # and `failure_message` of custom matchers include text for helper methods
+ # defined using `chain`, e.g.:
+ # be_bigger_than(2).and_smaller_than(4).description
+ # # => "be bigger than 2 and smaller than 4"
+ # ...rather than:
+ # # => "be bigger than 2"
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
+ end
+
+ # rspec-mocks config goes here. You can use an alternate test double
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
+ config.mock_with :rspec do |mocks|
+ # Prevents you from mocking or stubbing a method that does not exist on
+ # a real object. This is generally recommended, and will default to
+ # `true` in RSpec 4.
+ mocks.verify_partial_doubles = true
+ end
+
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
+ # have no way to turn it off -- the option exists only for backwards
+ # compatibility in RSpec 3). It causes shared context metadata to be
+ # inherited by the metadata hash of host groups and examples, rather than
+ # triggering implicit auto-inclusion in groups with matching metadata.
+ config.shared_context_metadata_behavior = :apply_to_host_groups
+
+# The settings below are suggested to provide a good initial experience
+# with RSpec, but feel free to customize to your heart's content.
+=begin
+ # This allows you to limit a spec run to individual examples or groups
+ # you care about by tagging them with `:focus` metadata. When nothing
+ # is tagged with `:focus`, all examples get run. RSpec also provides
+ # aliases for `it`, `describe`, and `context` that include `:focus`
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
+ config.filter_run_when_matching :focus
+
+ # Allows RSpec to persist some state between runs in order to support
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
+ # you configure your source control system to ignore this file.
+ config.example_status_persistence_file_path = "spec/examples.txt"
+
+ # Limits the available syntax to the non-monkey patched syntax that is
+ # recommended. For more details, see:
+ # https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/
+ config.disable_monkey_patching!
+
+ # This setting enables warnings. It's recommended, but in some cases may
+ # be too noisy due to issues in dependencies.
+ config.warnings = true
+
+ # Many RSpec users commonly either run the entire suite or an individual
+ # file, and it's useful to allow more verbose output when running an
+ # individual spec file.
+ if config.files_to_run.one?
+ # Use the documentation formatter for detailed output,
+ # unless a formatter has already been configured
+ # (e.g. via a command-line flag).
+ config.default_formatter = "doc"
+ end
+
+ # Print the 10 slowest examples and example groups at the
+ # end of the spec run, to help surface which specs are running
+ # particularly slow.
+ config.profile_examples = 10
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = :random
+
+ # Seed global randomization in this process using the `--seed` CLI option.
+ # Setting this allows you to use `--seed` to deterministically reproduce
+ # test failures related to randomization by passing the same `--seed` value
+ # as the one that triggered the failure.
+ Kernel.srand config.seed
+=end
+end