Kalhama / finder-scraper

Työkalu yritystietojen hakuun Finderistä ja YTJ:n avoimesta rajapinnasta
3 stars 0 forks source link

bug at the end of scraping #9

Closed Kalhama closed 7 months ago

Kalhama commented 7 months ago

✘ maxkalhama@Maxs-MacBook-Pro  ~   master ±✚  pnpm dlx finder-scraper https://www.finder.fi/search\?what\=xydsdfsdafsdf output.csv Packages: +171 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 171, reused 171, downloaded 0, added 171, done Request failed with status code 500 file:///Users/maxkalhama/Library/pnpm/store/v3/tmp/dlx-13876/node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/load.js:21 throw new Error('cheerio.load() expects a string'); ^

Error: cheerio.load() expects a string at Module.load (file:///Users/maxkalhama/Library/pnpm/store/v3/tmp/dlx-13876/node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/loa) at Finder. (file:///Users/maxkalhama/Library/pnpm/store/v3/tmp/dlx-13876/node_modules/.pnpm/finder-scraper@2.1.0_eslint@8.57.0/node_modul) at Generator.next () at fulfilled (file:///Users/maxkalhama/Library/pnpm/store/v3/tmp/dlx-13876/node_modules/.pnpm/finder-scraper@2.1.0_eslint@8.57.0/node_modules/finder) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v21.7.1

Kalhama commented 7 months ago

fixed in v2.2.0