hi i am trying to fix my web scraping json so passes page 3 at the m,oment it is closing…
- User
hi i am trying to fix my web scraping json so passes page 3 at the m,oment it is closing afer page 3 when there is 800 pages left
{ "_id": "globaldataV7", "startUrl": ["https://pharma3.globaldata.com/PharmaContacts/FilterGrid"], "selectors": [ { "id": "Table", "parentSelectors": ["_root", "GoToNextPage"], "type": "SelectorTable", "multiple": true, "selector": "table#gridProducts", "columns": [ {"name": "Contact Name", "selector": "td:nth-child(2) a"}, {"name": "Title", "selector": "td:nth-child(5)"}, {"name": "Department", "selector": "td:nth-child(6)"}, {"name": "Company", "selector": "td:nth-child(7) a"}, {"name": "Confirmed Email", "selector": "td:nth-child(8) a"}, {"name": "Probable Email", "selector": "td:nth-child(10) a"}, {"name": "Country", "selector": "td:nth-child(16)"}, {"name": "Last Update Date", "selector": "td:nth-child(24)"} ] }, { "id": "GoToNextPage", "parentSelectors": ["_root"], "type": "SelectorElementClick", "clickElementSelector": "a#ProductsGrid_ImgNext", "clickType": "clickOnce", "delay": 10000, "multiple": true }, { "id": "CheckContinue", "parentSelectors": ["GoToNextPage"], "type": "SelectorElementClick", "clickElementSelector": "a#ProductsGrid_ImgNext", "clickType": "clickOnce", "delay": 5000, "multiple": true }, { "id": "CheckContinue", "parentSelectors": ["GoToNextPage"], "type": "SelectorFunction", "function": "function() { const currentPage = parseInt(document.querySelector('#ProductsGrid_CurrentPage').textContent); const totalPages = 8386; return currentPage < totalPages; }", "multiple": true } ] }
- Assistant