Skip to content

Commit 6779f71

Browse files
committed
Rename package to 'scrappey' - v2.0.3
1 parent 3b3afd0 commit 6779f71

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

examples/nodejs/axios-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
// Instead of: const axios = require('axios');
9-
const axios = require('scrappey-wrapper/axios');
9+
const axios = require('scrappey/axios');
1010

1111
const API_KEY = process.env.SCRAPPEY_API_KEY || 'YOUR_API_KEY_HERE';
1212

examples/nodejs/example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* This example demonstrates how to use the Scrappey API from Node.js.
55
*
66
* Prerequisites:
7-
* npm install scrappey-wrapper
7+
* npm install scrappey
88
*
99
* Get your API key at: https://scrappey.com
1010
*/
1111

12-
const Scrappey = require('scrappey-wrapper');
12+
const Scrappey = require('scrappey');
1313

1414
const API_KEY = process.env.SCRAPPEY_API_KEY || 'YOUR_API_KEY_HERE';
1515

examples/nodejs/fetch-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
// Instead of: const fetch = require('node-fetch');
9-
const fetch = require('scrappey-wrapper/fetch');
9+
const fetch = require('scrappey/fetch');
1010

1111
const API_KEY = process.env.SCRAPPEY_API_KEY || 'YOUR_API_KEY_HERE';
1212

examples/typescript/example.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* This example demonstrates how to use the Scrappey API from TypeScript.
55
*
66
* Prerequisites:
7-
* npm install scrappey-wrapper typescript ts-node @types/node
7+
* npm install scrappey typescript ts-node @types/node
88
*
99
* Run:
1010
* npx ts-node example.ts
1111
*
1212
* Get your API key at: https://scrappey.com
1313
*/
1414

15-
import Scrappey = require('scrappey-wrapper');
15+
import Scrappey = require('scrappey');
1616

1717
const API_KEY: string = process.env.SCRAPPEY_API_KEY || 'YOUR_API_KEY_HERE';
1818

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "scrappey-wrapper",
3-
"version": "2.0.2",
2+
"name": "scrappey",
3+
"version": "2.0.3",
44
"description": "Official Node.js wrapper for the Scrappey web scraping API. Bypass Cloudflare, Datadome, PerimeterX, and other antibot protections. Solve captchas automatically.",
55
"main": "index.js",
66
"types": "types/index.d.ts",

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The official Node.js wrapper for the [Scrappey](https://scrappey.com) web scraping API. Bypass Cloudflare, Datadome, PerimeterX, and other antibot protections. Solve captchas automatically.
44

5-
[![npm version](https://badge.fury.io/js/scrappey-wrapper.svg)](https://www.npmjs.com/package/scrappey-wrapper)
5+
[![npm version](https://badge.fury.io/js/scrappey.svg)](https://www.npmjs.com/package/scrappey)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77

88
## Features
@@ -19,13 +19,13 @@ The official Node.js wrapper for the [Scrappey](https://scrappey.com) web scrapi
1919
## Installation
2020

2121
```bash
22-
npm install scrappey-wrapper
22+
npm install scrappey
2323
```
2424

2525
## Quick Start
2626

2727
```javascript
28-
const Scrappey = require('scrappey-wrapper');
28+
const Scrappey = require('scrappey');
2929

3030
const scrappey = new Scrappey('YOUR_API_KEY');
3131

@@ -52,15 +52,15 @@ import axios from 'axios';
5252
const response = await axios.get('https://example.com');
5353

5454
// After - just change the import!
55-
import axios from 'scrappey-wrapper/axios';
55+
import axios from 'scrappey/axios';
5656
axios.defaults.apiKey = 'YOUR_API_KEY';
5757
const response = await axios.get('https://example.com');
5858
// Automatically bypasses Cloudflare, solves captchas, etc.
5959
```
6060

6161
**All axios methods work:**
6262
```javascript
63-
import axios from 'scrappey-wrapper/axios';
63+
import axios from 'scrappey/axios';
6464

6565
axios.defaults.apiKey = 'YOUR_API_KEY';
6666

@@ -114,7 +114,7 @@ const response = await fetch('https://example.com');
114114
const data = await response.json();
115115

116116
// After
117-
import fetch from 'scrappey-wrapper/fetch';
117+
import fetch from 'scrappey/fetch';
118118
fetch.configure({ apiKey: 'YOUR_API_KEY' });
119119

120120
const response = await fetch('https://example.com', {
@@ -125,7 +125,7 @@ const data = await response.json();
125125

126126
**All fetch methods work:**
127127
```javascript
128-
import fetch from 'scrappey-wrapper/fetch';
128+
import fetch from 'scrappey/fetch';
129129

130130
fetch.configure({ apiKey: 'YOUR_API_KEY' });
131131

@@ -164,7 +164,7 @@ const arrayBuffer = await response.arrayBuffer();
164164

165165
**Axios:**
166166
```javascript
167-
import axios from 'scrappey-wrapper/axios';
167+
import axios from 'scrappey/axios';
168168

169169
// Set defaults
170170
axios.defaults.apiKey = 'YOUR_API_KEY';
@@ -182,7 +182,7 @@ const scrappeyAxios = axios.create({
182182

183183
**Fetch:**
184184
```javascript
185-
import fetch from 'scrappey-wrapper/fetch';
185+
import fetch from 'scrappey/fetch';
186186

187187
// Configure globally
188188
fetch.configure({
@@ -217,7 +217,7 @@ Both adapters support Scrappey session management:
217217

218218
```javascript
219219
// Axios
220-
import axios from 'scrappey-wrapper/axios';
220+
import axios from 'scrappey/axios';
221221
axios.defaults.apiKey = 'YOUR_API_KEY';
222222

223223
const session = await axios.createSession();
@@ -227,7 +227,7 @@ await axios.get('https://example.com', { session: sessionId });
227227
await axios.destroySession(sessionId);
228228

229229
// Fetch
230-
import fetch from 'scrappey-wrapper/fetch';
230+
import fetch from 'scrappey/fetch';
231231
fetch.configure({ apiKey: 'YOUR_API_KEY' });
232232

233233
const session = await fetch.createSession();

0 commit comments

Comments
 (0)