Skip to content

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipehertzer committed Jul 28, 2021
1 parent dff927e commit a0f47f8
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ Or
|desktop|(boolean)|True|
|platform|(string) `'linux', 'windows', 'darwin', 'android', 'ios'`|None|
|custom|(string)|None|
|ecdhCurve|(string)|prime256v1|
#### Example

```python
Expand Down Expand Up @@ -186,12 +185,6 @@ scraper = cloudscraper.create_scraper(
'custom': 'ScraperBot/1.0',
}
)

# Some servers require the use of a more complex ecdh curve than the default "prime256v1"
# It may can solve handshake failure
scraper = cloudscraper.create_scraper(
ecdhCurve='secp384r1'
)
```
------

Expand Down Expand Up @@ -603,3 +596,27 @@ print(
)
)
```

### Cryptography

#### Description

Control communication between client and server

#### Parameters

Can be passed as an argument to `create_scraper()`.

|Parameter|Value|Default|
|-------------|:-------------:|:-----:|
|cipherSuite|(string)|None|
|ecdhCurve|(string)|prime256v1|
#### Example

```python
# Some servers require the use of a more complex ecdh curve than the default "prime256v1"
# It may can solve handshake failure
scraper = cloudscraper.create_scraper(
ecdhCurve='secp384r1'
)
```

0 comments on commit a0f47f8

Please sign in to comment.