mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-04-27 09:15:43 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7668b5d89 | ||
|
|
a42332e4ef |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
||||
# lbc
|
||||
publish.sh
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
## v1.0.0
|
||||
## 1.0.1
|
||||
### Added
|
||||
* Realistic `Sec-Fetch-*` headers to prevent 403 errors.
|
||||
|
||||
## 1.0.0
|
||||
* Initial release
|
||||
@@ -1,6 +1,5 @@
|
||||
# lbc
|
||||
[](https://pypi.org/project/lbc)
|
||||

|
||||
[](https://github.com/etienne-hd/lbc/blob/master/LICENSE)
|
||||
|
||||
**Unofficial client for Leboncoin API**
|
||||
@@ -42,7 +41,7 @@ pip install lbc
|
||||
|
||||
## Usage
|
||||
### Client
|
||||
To create client you need to use lbc.Client class
|
||||
To create client you need to use `lbc.Client` class
|
||||
```python
|
||||
import lbc
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "lbc"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
description = "Unofficial client for Leboncoin API"
|
||||
readme = "README.md"
|
||||
license = {text = "MIT"}
|
||||
|
||||
@@ -22,6 +22,14 @@ class Session:
|
||||
impersonate="firefox",
|
||||
)
|
||||
|
||||
session.headers.update(
|
||||
{
|
||||
'Sec-Fetch-Dest': 'empty',
|
||||
'Sec-Fetch-Mode': 'cors',
|
||||
'Sec-Fetch-Site': 'same-site',
|
||||
}
|
||||
)
|
||||
|
||||
if proxy:
|
||||
session.proxies = {
|
||||
"http": proxy.url,
|
||||
|
||||
Reference in New Issue
Block a user