Skip to content

Commit

Permalink
Move deprecated Cloudflare v1
Browse files Browse the repository at this point in the history
  • Loading branch information
VeNoMouS committed Oct 31, 2021
1 parent faf8eb0 commit 7fa8e8f
Show file tree
Hide file tree
Showing 5 changed files with 548 additions and 561 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ matrix:
- python: '3.9'

install:
- pip install -r requirements.txt
- pip install -r dev_requirements.txt
- pip install python-coveralls
- pip install -r requirements.txt --use-deprecated=legacy-resolver
- pip install -r dev_requirements.txt --use-deprecated=legacy-resolver
- pip install python-coveralls --use-deprecated=legacy-resolver

script:
- make lint && make ci
Expand Down
45 changes: 20 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,6 @@ We support the following Javascript interpreters/engines.
- **[Node.js](https://nodejs.org/)**
- **[V8](https://github.com/sony/v8eval/):** We use Sony's [v8eval](https://v8.dev)() python module.

# Updates

Cloudflare modifies their anti-bot protection page occasionally, So far it has changed maybe once per year on average.

If you notice that the anti-bot page has changed, or if this module suddenly stops working, please create a GitHub issue so that I can update the code accordingly.

- Many issues are a result of users not updating to the latest release of this project. Before filing an issue, please run the following command:

```
pip show cloudscraper
```

If the value of the version field is not the latest release, please run the following to update your package:

```
pip install cloudscraper -U
```

If you are still encountering a problem, open an issue and please include:

- The full exception and stack trace.
- The URL of the Cloudflare-protected page which the script does not work on.
- A Pastebin or Gist containing the HTML source of the protected page.
- The version number from `pip show cloudscraper`.

# Usage

The simplest way to use cloudscraper is by calling `create_scraper()`.
Expand All @@ -101,6 +76,26 @@ Consult [Requests' documentation](http://docs.python-requests.org/en/latest/user

## Options

### Disable Cloudflare V1
#### Description

If you don't want to even attempt Cloudflare v1 (Deprecated) solving..

#### Parameters


|Parameter|Value|Default|
|-------------|:-------------:|:-----:|
|disableCloudflareV1|(boolean)|False|

#### Example

```python
scraper = cloudscraper.create_scraper(disableCloudflareV1=True)
```

------

### Brotli

#### Description
Expand Down
Loading

0 comments on commit 7fa8e8f

Please sign in to comment.