mwpenny / kijiji-scraper

A lightweight node.js module for retrieving and scraping ads from Kijiji
MIT License
96 stars 44 forks source link

Ad #... does not exist #60

Closed patricksebastien closed 3 years ago

patricksebastien commented 3 years ago

I am trying to search for ads and sometimes I get:

Error: Kijiji returned error: Ad #1553278802 does not exist
    at parseResponseXML (node_modules/kijiji-scraper/dist/lib/backends/api-scraper.js:49:15)
    at node_modules/kijiji-scraper/dist/lib/backends/api-scraper.js:124:16

How to skip it?

mwpenny commented 3 years ago

Hi there. It looks like you're trying to scrape a specific ad using its URL, rather than searching. This error can happen if the ad URL you use is invalid or old.

Can you provide some sample code that reproduces the issue?

patricksebastien commented 3 years ago

@mwpenny Code-18 - sorry for the noise, closing.