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.4.tar.gz
(11.5 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.4.tar.gz.
File metadata
- Download URL: fetchfox_sdk-0.0.4.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce831ed74c8821df5171c302f9f3d0c5dac5f0e20b94c959158ea10a098380c3
|
|
| MD5 |
33a82956688277e5d31facdd2e307be0
|
|
| BLAKE2b-256 |
d3c2cd6ec628999fd6087399f963e017a692904beb1c01df1b059bffff332ef3
|
File details
Details for the file fetchfox_sdk-0.0.4-py3-none-any.whl.
File metadata
- Download URL: fetchfox_sdk-0.0.4-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 |
d875c409e900d02e56426ff1949990bf4b801775877b787b1cfc20b63e484712
|
|
| MD5 |
e358f350b434b937d65db60e28ad2c5d
|
|
| BLAKE2b-256 |
7103d920f2e2ba7e57603b5f5bb5ef7a2e628d38dd4fc7b1403cda907592027a
|