urgent-maroonU
Apify & Crawlee4y ago
4 replies
urgent-maroon

Display multiple output

My current actor only outputs one result from a list of inputs. I'm not sure what else I need to add to my code for all results to get displayed. Here's what I have for my output:
book.append({'title': get_title(doc),
             'price': get_price(doc),
             'publisher': get_pub(doc),
             'copyright': get_copy(doc),
             'asin': get_asin(doc),
             'isbn': get_isbn(doc), 
             'description': get_desc(doc),
             'image': get_image(doc)})

default_dataset_client = client.dataset(os.environ['APIFY_DEFAULT_DATASET_ID'])
default_dataset_client.push_items(book)
print(f'Results have been saved to the dataset with ID {os.environ["APIFY_DEFAULT_DATASET_ID"]}')
Was this page helpful?