Views are not showing.

Some scrapers show different views in their output. In my case I don't see these view tabs. I made a view called "Overview" and expected an "All fields" tab to appear when running my own actor, as the dataset contains more fields than that. Even when adding multiple views, those tabs don't appear. Any idea why that would be? This is what my dataset_schema.json looks like:
{
"actorSpecification": 1,
"fields": {},
"views": {
"overview": {
"title": "Overview",
"description": "Overview of all groups",
"transformation": {
"fields": [
"name",
"displayName",
"description"
]
},
"display": {
"component": "table",
"properties": {
"displayName": {
"label": "Group Name",
"format": "text"
},
"name": {
"label": "Slug",
"format": "text"
},
"description": {
"label": "Description",
"format": "text"
}
}
}
}
}
}
{
"actorSpecification": 1,
"fields": {},
"views": {
"overview": {
"title": "Overview",
"description": "Overview of all groups",
"transformation": {
"fields": [
"name",
"displayName",
"description"
]
},
"display": {
"component": "table",
"properties": {
"displayName": {
"label": "Group Name",
"format": "text"
},
"name": {
"label": "Slug",
"format": "text"
},
"description": {
"label": "Description",
"format": "text"
}
}
}
}
}
}
No description
No description
2 Replies
Lukas Celnar
Lukas Celnar3w ago
Hi, do you have the .actor/dataset_schema.json correctly referenced in the .actor/actor.json? For example
{
"actorSpecification": 1,
"name": "this-is-book-library-scraper",
"title": "Book Library scraper",
"version": "1.0.0",
"storages": {
"dataset": "./dataset_schema.json"
}
}
{
"actorSpecification": 1,
"name": "this-is-book-library-scraper",
"title": "Book Library scraper",
"version": "1.0.0",
"storages": {
"dataset": "./dataset_schema.json"
}
}
Louis Deconinck
Louis DeconinckOP3w ago
I found the issue. I also had an output schema: "output": "./output_schema.json". When removing that, the views show up.

Did you find this page helpful?