Skip to content

Commit

Permalink
Rename get_from_url on Scraper.rb to scrape
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Steensma committed Sep 17, 2023
1 parent ea7ae10 commit 7b5014f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Dhalang::Screenshot.get_from_url("https://www.google.com", :webp)
### Scraping

```ruby
Dhalang::Scraper.get_from_url("https://www.google.com")
Dhalang::Scraper.scrape("https://www.google.com")
```

# Custom PDF/screenshot options
Expand Down
2 changes: 1 addition & 1 deletion lib/Scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Scraper
# @param [Hash] options User configurable options.
#
# @return [String] The html content of the page.
def self.get_from_url(url, options = {})
def self.scrape(url, options = {})
UrlUtils.validate(url)
configuration = PuppeteerConfiguration.new(url, options)
return NodeScriptInvoker.execute_script_and_read_stdout(SCRIPT_PATH, configuration.json)
Expand Down

0 comments on commit 7b5014f

Please sign in to comment.