Skip to content

Commit 6d27ad5

Browse files
committed
Add Datasets API with 8 datasets and demo notebooks - Datasets: LinkedIn (profiles, companies), Amazon, Crunchbase, IMDB, NBA, Goodreads, World Population - Export utilities: export_json, export_csv, export_jsonl - Notebooks: linkedin, amazon, crunchbase demos
1 parent 251d188 commit 6d27ad5

31 files changed

Lines changed: 4666 additions & 12 deletions

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Bright Data Python SDK Changelog
22

3+
## Version 2.2.0 - Datasets API
4+
5+
### ✨ New Features
6+
7+
#### Datasets API
8+
Access Bright Data's pre-collected datasets with filtering and export capabilities.
9+
10+
```python
11+
async with BrightDataClient() as client:
12+
# Filter dataset records
13+
snapshot_id = await client.datasets.amazon_products.filter(
14+
filter={"name": "rating", "operator": ">=", "value": 4.5},
15+
records_limit=100
16+
)
17+
# Download results
18+
data = await client.datasets.amazon_products.download(snapshot_id)
19+
```
20+
21+
**8 Datasets:** LinkedIn Profiles, LinkedIn Companies, Amazon Products, Crunchbase Companies, IMDB Movies, NBA Players Stats, Goodreads Books, World Population
22+
23+
**Export Utilities:**
24+
```python
25+
from brightdata.datasets import export_json, export_csv
26+
export_json(data, "results.json")
27+
export_csv(data, "results.csv")
28+
```
29+
30+
### 📓 Notebooks
31+
- `notebooks/datasets/linkedin/linkedin.ipynb` - LinkedIn datasets (profiles & companies)
32+
- `notebooks/datasets/amazon/amazon.ipynb` - Amazon products dataset
33+
- `notebooks/datasets/crunchbase/crunchbase.ipynb` - Crunchbase companies dataset
34+
35+
---
36+
337
## Version 2.1.2 - Web Scrapers & Notebooks
438

539
### 🐛 Bug Fixes

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

0 commit comments

Comments
 (0)