These examples use typed parameter classes (GoogleSearchParams, AmazonProductParams, etc.) which require running the type generator first:
python -m decodo.codegen.codegenTo run any example without the generator, replace the typed params with a plain dict:
# instead of:
result = client.web_scraping_api.scrape(
GoogleSearchParams(target=Target.GoogleSearch, query="coffee shops", parse=True)
)
# use:
result = client.web_scraping_api.scrape({
"target": "google_search",
"query": "coffee shops",
"parse": True,
})See the root README for the full list of target strings.