Python SDK for the FetchFox API.
Project description
FetchFox SDK
Python library for the Fetchfox API.
FetchFox uses AI to power flexible scraping workflows.
Installation
Into a Fresh Venv, for a new project
git clone git@github.com:hephaestus-klytotekhnes/fetchfox-sdk-python.git
cd fetchfox-sdk-python
python -m venv venv
source ./venv/bin/activate
pip install .
export FETCHFOX_API_KEY=$YOUR_KEY_HERE
# Try an example:
cd examples/
python 1_extract_with_prompt.py
Via PyPI
Coming soon!
Quick Start
from fetchfox_sdk import FetchFoxSDK
# Initialize the client
fox = FetchFoxSDK(api_key="YOUR_API_KEY")
# or, the API key may be provided in the environment variable: FETCHFOX_API_KEY
# Extract data from a webpage
results = fox.extract(
url="https://example.com",
instruction="Extract all product prices"
)
# Find specific URLs
urls = fox.find_urls(
url="https://example.com",
instruction="Find all product detail pages"
)
Examples
Check out the examples folder for some typical usages.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fetchfox_sdk-0.0.3.tar.gz
(11.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fetchfox_sdk-0.0.3.tar.gz.
File metadata
- Download URL: fetchfox_sdk-0.0.3.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24815af5330ea52ef2e42b5d4c367ab3f79c84efd7c232b56a9d86a156ed6825
|
|
| MD5 |
1d598e0e92ef48c936883efe29eed084
|
|
| BLAKE2b-256 |
9115c3fad05a5764787f904751b511f87d34f8588f4e29fe4fa8262cc76bd7be
|
File details
Details for the file fetchfox_sdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: fetchfox_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a91896993a4fcacb45ac76458dd999d5c84a992a15d5c4ebad0dd757818917
|
|
| MD5 |
5da0c4923cbca20d90e1536d96dd8809
|
|
| BLAKE2b-256 |
b461e9badb0b53333a7ac0f3be79d93a7cbdabc5af8cc62e2ec6032973aa8b77
|