Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Sep 14, 2024
1 parent 20db82e commit c0883bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ require_once 'path/to/Zebra_cURL.php';

## How to use

**Scrap a page**
**Scrape a page**

```php
<?php
Expand All @@ -81,9 +81,9 @@ $curl->cache('path/to/cache', 3600);
// you can always update this bundle from https://curl.se/docs/caextract.html
$curl->ssl(true, 2, __DIR__ . '/cacert.pem');

// a simple way of scrapping a page
// a simple way of scraping a page
// (you can do more with the "get" method and callback functions)
echo $curl->scrap('https://github.com/', true);
echo $curl->scrape('https://github.com/', true);
```

**Fetch RSS feeds**
Expand Down Expand Up @@ -178,7 +178,7 @@ $curl->option(CURLOPT_HTTPHEADER, [
'X-Token-Foo-Bar: ABC123' // Pass keys to APIs, for example
]);

echo $curl->scrap('https://httpbin.org/get') . PHP_EOL;
echo $curl->scrape('https://httpbin.org/get') . PHP_EOL;
```

**Download an image**
Expand Down

0 comments on commit c0883bb

Please sign in to comment.