TypeError: Cannot read property 'name' of undefined -- version "^1.0.20"
See original GitHub issueHello, I’m using scrapedin with version 1.0.20
and this line
const profile = await profileScraper('https://www.linkedin.com/in/emanfateen/')
and here is my log
TypeError: Cannot read property ‘name’ of undefined at module.exports (/media/eman/programs/projects/project/crawler-latest/node_modules/scrapedin/src/profile/cleanProfileData.js:5:23) at module.exports (/media/eman/programs/projects/project/crawler-latest/node_modules/scrapedin/src/profile/profile.js:79:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Function.start (/media/eman/programs/projects/project/crawler-latest/scraper.js:29:20) at async Socket.<anonymous> (/media/eman/programs/projects/project/crawler-latest/scraper.js:49:5)
I’m logging by cookie and here is my settings scraper: { hasToLog: true, isHeadless: true, puppeteerArgs: { args: [ ‘–no-sandbox’ ] }, interval: 13000, }
how could I solve this issue!!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
@gautierdag Thank you. I got it
For those of you having these issues right now, try downgrading to
puppeteer@5.3.1
.