1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "isbns": [
10 "9780143127741",
11 "978-0-06-112008-4",
12 "0451524934",
13 ],
14 "includeGoogleBooks": True,
15 "skipNotFound": False,
16 "outputFields": [
17 "isbn13",
18 "isbn10",
19 "title",
20 "authors",
21 "publisher",
22 "publishDate",
23 "pageCount",
24 "subjects",
25 "description",
26 "language",
27 "coverImageUrl",
28 "googleBooksUrl",
29 "openLibraryUrl",
30 "googleRating",
31 "googleRatingsCount",
32 "inputIsbn",
33 "source",
34 "error",
35 ],
36}
37
38
39run = client.actor("automation-lab/isbn-lookup").call(run_input=run_input)
40
41
42print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46