# react-native-cloudscraper

> A port of cloudscraper to React Native

Latest version **1.1.0** (published 2017-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-cloudscraper
pnpm add react-native-cloudscraper
yarn add react-native-cloudscraper
bun add react-native-cloudscraper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-08-14 |
| First published | 2017-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Carson Storm |
| Maintainers | stormymcstorm |
| Keywords | cloudflare, ddos, scrape, webscraper, react, react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-cloudscraper
- Repository: https://github.com/stormymcstorm/react-native-cloudscraper
- Homepage: https://github.com/stormymcstorm/react-native-cloudscraper#readme
- Issues: https://github.com/stormymcstorm/react-native-cloudscraper/issues
- npm.io page: https://npm.io/package/react-native-cloudscraper

## Dependencies (5)

- [buffer](https://npm.io/package/buffer.md) ^5.0.7
- [vm-shim](https://npm.io/package/vm-shim.md) ^0.0.6
- [statuses](https://npm.io/package/statuses.md) ^1.3.1
- [url-parser](https://npm.io/package/url-parser.md) ^0.0.1
- [querystring](https://npm.io/package/querystring.md) ^0.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-08-14
- 1.0.4 — 2017-08-11
- 1.0.3 — 2017-08-11
- 1.0.2 — 2017-08-11
- 1.0.1 — 2017-08-11
- 1.0.0 — 2017-08-11

## README

# react-native-cloudscraper
[![Travis](https://img.shields.io/travis/stormymcstorm/react-native-cloudscraper.svg?style=plastic)](https://travis-ci.org/stormymcstorm/react-native-cloudscraper/)
[![Codecov](https://img.shields.io/codecov/c/github/stormymcstorm/react-native-cloudscraper/v1.1.svg)](https://codecov.io/gh/stormymcstorm/react-native-cloudscraper/v1.1)
[![npm](https://img.shields.io/npm/v/react-native-cloudscraper.svg?style=plastic)](https://www.npmjs.com/package/react-native-cloudscraper)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

This library is a port of [cloudscraper](https://github.com/codemanki/cloudscraper) for react native with some minor changes.

## Install
```bash
npm install react-native-cloudscraper --save
```
```bash
react-native link react-native-cloudscraper
```

```bash
yarn add react-native-cloudscraper
```

## Usage
```javascript
import * as cloudscraper from "react-native-cloudscraper"

cloudscraper.get("http://example.com")
  .then((res) => {
    // do some stuff
  });

cloudscraper.post("http://example.com", {body: "This is a request body"})
  .then((res) => {
    // do some stuff
  })
```

## Docs

[Package Documentation](https://stormymcstorm.github.io/react-native-cloudscraper/)

[Fetch Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) (this is where the options and response object come from)

## Testing
Clone this repo, `npm install` and then `npm test`

## TODO
 - [x] Check for recaptcha
 - [x] Support cookies, so challenge can be solved once per session
 - [x] Support page with simple redirects
 - [x] Add integrated testing
 - [ ] Add end-to-end testing
 - [x] Support Cookie Challenge

## License
[MIT License](LICENSE)

---
_Source: https://npm.io/package/react-native-cloudscraper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
