1.1.0 • Published 7 years ago

react-native-cloudscraper v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-native-cloudscraper

Travis Codecov npm MIT license

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

Package Documentation

Fetch Documentation (this is where the options and response object come from)

Testing

Clone this repo, npm install and then npm test

TODO

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

License

MIT License