Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.2 instead.
English | 日本語
jevrake — a scraping tool powered by Jev
Example on books.toscrape.com, a site made for scraping practice:
jevrake https://books.toscrape.com/ --fields '{"title": "Book title", "price": {"description": "Price", "type": "decimal"}, "availability": "Availability"}'
Output (1 of the 20 books on the page):
{
"url": "https://books.toscrape.com/",
"data": {
"title": "A Light in the ...",
"price": "51.77",
"availability": "In stock"
},
"fields": {
"title": {"value": "A Light in the ...", "confidence": 1.0, "probability": 1.0, "source": "A Light in the ..."},
"price": {"value": "51.77", "confidence": 0.98, "probability": 0.99, "source": "£51.77"},
"availability": {"value": "In stock", "confidence": 1.0, "probability": 1.0, "source": "In stock"}
}
}
Install
pipx install git+https://github.com/RKasai127/jevrake
export TYPESAFE_API_KEY=your-api-key
Usage
jevrake https://example.com/item/1 --fields '{"title": "Product name", "price": {"description": "Price", "type": "int"}}'
Or from Python:
from pydantic import BaseModel, Field
from jevrake import rake
class Product(BaseModel):
title: str = Field(description="Product name")
price: int = Field(description="Price")
results = rake(["https://example.com/item/1"], Product)
jevrake collects every value on the page that matches each field's type, and Jev picks the one that fits the description. Values always come from the page.
- Works on list pages too: each repeated item (e.g. each shop in a list) becomes one record
- Types:
str,int,float,decimal - A value that is not found, or found with confidence below 0.9, becomes
null - robots.txt is not checked. Please make sure you follow each site's rules.
License
MIT
Metadata
Release files for jevrake 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jevrake-0.1.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jevrake-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.6 kB
Release files / jevrake-0.1.0.tar.gz
| Download URL | jevrake-0.1.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daad6051682e5fcde4feabd758c88d0bee9f9b046c83c05895b73061a7baae7a
|
|
BLAKE2b-256 checksum How to use checksums |
a5d13c55d8a8a726566da2f9d27c3b4b145bebcb9ef35c66f3058d0748f0327d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Release files / jevrake-0.1.0-py3-none-any.whl
| Download URL | jevrake-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7df2f23800e482953b44d779b156b016aa3b3f0d65673e19160cc0da34448548
|
|
BLAKE2b-256 checksum How to use checksums |
307298ff5cafc45bd048ffb9a6ed610d0d4f78f3ae52c6c86b1d79296bdb0bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|