Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into connect-to-remote-c…
Browse files Browse the repository at this point in the history
…hromium
  • Loading branch information
NielsSteensma committed Aug 11, 2024
2 parents a737ca5 + 9750a2d commit 13f78f5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dhalang [![Build](https://github.com/NielsSteensma/Dhalang/actions/workflows/build.yml/badge.svg)](https://github.com/NielsSteensma/Dhalang/actions/workflows/build.yml)
# Dhalang [![Build](https://github.com/NielsSteensma/Dhalang/actions/workflows/build.yml/badge.svg)](https://github.com/NielsSteensma/Dhalang/actions/workflows/build.yml) [![Gem Version](https://badge.fury.io/rb/Dhalang.svg)](https://badge.fury.io/rb/Dhalang)

> Dhalang is a Ruby wrapper for Google's Puppeteer.
Expand All @@ -11,7 +11,11 @@
* Scrape HTML from webpages



## Prerequisites
* Node ≥ 18
* Puppeteer ≥ 22
* Unix shell ( Dhalang will not work on Windows shells )

## Installation
Add this line to your application's Gemfile:

Expand All @@ -27,7 +31,6 @@ Install puppeteer or puppeteer-core are supported in your application's root dir
or
$ npm install puppeteer-core

<sub>Dhalang and Puppeteer require Node ≥ 18 and Puppeteer ≥ 22</sub>
## Usage
__PDF of a website url__
```ruby
Expand Down Expand Up @@ -119,4 +122,4 @@ def example_controller_method
binary_png = Dhalang::Screenshot.get_from_url("https://www.google.com", :png)
send_data(binary_png, filename: 'screenshotofgoogle.png', type: 'image/png')
end
```
```

0 comments on commit 13f78f5

Please sign in to comment.