Describe the problem.
Hi,
I have been trying to create a scrapper for what seems to be a relatively simple site layout - a table and pagination.
So the logic is:
- Scrap the table;
- Click pagination button;
- Scrap the table
This is dynamically refreshed table and I watched relevant video where the similar guidance was provided, however, with no success.
The pages are get flipped ok but the table data remains uncaught.
Apprecaite a hint on this.
Here is what my current JSON looks like
{
"_id":"psc",
"startUrl":[
"https://www.website"
],
"selectors":[
{
"id":"pagination-click",
"type":"SelectorElementClick",
"parentSelectors":[
"_root"
],
"selector":"table",
"multiple":true,
"delay":"1000",
"clickElementSelector":".pagination a",
"clickType":"clickOnce",
"discardInitialElements":"discard-when-click-element-exists",
"clickElementUniquenessType":"uniqueText"
},
{
"id":"data",
"type":"SelectorTable",
"parentSelectors":[
"pagination-click"
],
"selector":"table",
"multiple":true,
"columns":[
{
"header":"Date",
"name":"Date",
"extract":true
},
{
"header":"Vessel Name",
"name":"Vessel Name",
"extract":true
},
{
"header":"Vessel Name at Inspection",
"name":"Vessel Name at Inspection",
"extract":true
},
{
"header":"Inspection Type",
"name":"Inspection Type",
"extract":true
},
{
"header":"Authority",
"name":"Authority",
"extract":true
},
{
"header":"Port",
"name":"Port",
"extract":true
},
{
"header":"# Deficiencies",
"name":"Deficiencies",
"extract":true
},
{
"header":"Vessel was Detained",
"name":"Vessel was Detained",
"extract":true
},
{
"header":"Status",
"name":"Status",
"extract":true
}
],
"delay":0,
"tableDataRowSelector":"tbody tr",
"tableHeaderRowSelector":"thead tr"
}
]
}