Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saumier committed Nov 20, 2024
1 parent 916ba7e commit a500223
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/headless_browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ def initialize(headers = nil)
end

# Main method to return html for a single url in headless mode
# Outputs: RDF::Graph
# Input: URL of the index page
# Output: string contianing html
def fetch_entity_urls_headless(url)
@browser.go_to(url)
sleep 15
@browser.body
end

# Main method to return an RDF::Graph using the list of entity URLs
# Outputs: RDF::Graph
# Input: Array of URLs
# Output: RDF::Graph
def fetch_json_ld_objects(entity_urls)
@graph = RDF::Graph.new
entity_urls.each do |entity_url|
Expand Down

0 comments on commit a500223

Please sign in to comment.