react-native-cloudscraper
v1.1.0
Published
A port of cloudscraper to React Native
Downloads
46
Maintainers
Readme
react-native-cloudscraper
This library is a port of cloudscraper for react native with some minor changes.
Install
npm install react-native-cloudscraper --save
react-native link react-native-cloudscraper
yarn add react-native-cloudscraper
Usage
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
Fetch Documentation (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