react-native-cloudscraper

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-cloudscraper

Weekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • stormymcstorm