Code Monkey home page Code Monkey logo

insights-for-instagram-scraper's Introduction

insights-for-instagram-scraper

A simple instagram scraper using Puppeteer.

Check out the article on Medium Link

git clone [email protected]:adimango/insights-for-instagram-scraper.git
npm i
npm start natgeo

insights-for-instagram-scraper's People

Contributors

adimango avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

insights-for-instagram-scraper's Issues

TimeOut error when running script

When I run the script, I get the following error:
timeout 30000ms exceeded at new WaitTask (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/node_modules/puppeteer/lib/DOMWorld.js:554:28) at DOMWorld.waitForFunction (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/node_modules/puppeteer/lib/DOMWorld.js:459:12) at Frame.waitForFunction (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/node_modules/puppeteer/lib/FrameManager.js:636:28) at Page.waitForFunction (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/node_modules/puppeteer/lib/Page.js:1098:29) at Scrapy.load (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/Scrapy.js:65:28) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Scrapy.evaluate (/Users/cyngyzusenov/Desktop/pet-projects/insights-for-instagram-scraper/Scrapy.js:43:26)

TimeOut error when running script

When I run the script, I get the following:

 [path\to]\insights-for-instagram-scraper> node .\index.js willsmith
√ Valid page found
- Scraping url: https://instagram.com/willsmith  
TimeoutError: waiting for function failed: timeout 30000ms exceeded
    at new WaitTask ([path\to]\insights-for-instagram-scraper\node_modules\puppeteer\lib\DOMWorld.js:554:28)
    at DOMWorld.waitForFunction ([path\to]\insights-for-instagram-scraper\node_modules\puppeteer\lib\DOMWorld.js:459:12)
    at Frame.waitForFunction ([path\to]\insights-for-instagram-scraper\node_modules\puppeteer\lib\FrameManager.js:636:28)
    at Page.waitForFunction ([path\to]\insights-for-instagram-scraper\node_modules\puppeteer\lib\Page.js:1098:29)    at Scrapy.load ([path\to]\insights-for-instagram-scraper\Scrapy.js:65:28)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Scrapy.evaluate ([path\to]\insights-for-instagram-scraper\Scrapy.js:43:26)
√ Scraped 0 posts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.