Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

364
Views
Solucione un error JSON.parse en Node.js usando Cheerio to Web-Scraping y obtenga los detalles del perfil de Instagram

pasos para reproducir

  • Ejecute este comando
     mkdir t && \ cd t && \ npm init -y && \ npm i express ejs cheerio request-promise && \ wget -O index.js https://pastebin.com/raw/c3v48UdG && \ mkdir views && \ wget -O ./views/index.ejs https://pastebin.com/raw/UMXHkreq && \ node index.js
  • Visite localhost: 5000 e intente generar información de cualquier usuario de Instagram
  • Ver el error en la consola
     ~/t/index.js:49 } = JSON.parse(/window\._sharedData = (.+);/g.exec(script)[1]); ^ TypeError: Cannot read properties of null (reading '1') at start (~/t/index.js:49:61)

Menciones

  • el código pastebin anterior es de esta guía
  • este cliente de la API web privada de Instagram para Node tiene el mismo problema
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!