Code Monkey home page Code Monkey logo

playstore-scraper's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

playstore-scraper's Issues

Error on scraper server (nodejs)

Scraping for details using the package names on the scraper-server is returning an error with the following message:
Cannot read property 'replace' of undefined

server_helper start/stop scraper server commands

I noticed that

  1. when starting the server, it actually takes a little time to start up, so doing
    'proc = server_helper.start_scraper_server()' and then immediately executing commands using the server causes the first set of commands to fail as the server is still starting. I managed to do a simple fix by adding a pause of .5-1 sec in start_scraper_server, not sure if there is a more exact method of waiting until the server starts.

  2. Perhaps the larger problem I noticed is even after running stop_scraper_server, the server still persists on my machine and I can only stop it through the system monitor. Not sure how to fix or why the server does not stop (stop_scraper_server is running correctly as it logs the messages "Shutting down scraper server" and "Server shut down completed with code -15", not sure if -15 is an error code). An EXTREMELY hacky way to fix is by executing command line commands to kill the 'node' process. I believe it is terminating the wrong process right now (i.e. doing npm start spawns another process, npm start is being terminated but not the other process so the server persists).

Like I mentioned the fix for 1 can be pretty simple but not exact, and I don't really know a clean way to fix 2.

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.