Git Product home page Git Product logo

tech-skills-scraper-and-visualizer's Introduction

Please note: This code is a "ball of mud" I put together for a relatively quick proof of concept. There are a huge number of improvements (in terms of architecture, code quality, etc.) to be made. Maybe one day I'll actually turn this into a web application ¯_(ツ)_/¯.

This application can be used to scrape data about what skills are being demanded for different jobs in different US cities. See https://medium.com/@jackgrundy/automatically-compiling-data-from-indeed-com-about-what-tech-skills-are-in-demand-7be6e9ecd0f1 for an illustration.

There are 2 build options:

(1) If you only want to run the application (you don't want the source code)
-Download build-from-docker-hub/docker-compose.yml
-Navigate to the folder where you downloaded docker-compose.yml
-Execute "Docker-compose up"
-Wait until everything is up and running (a few minutes to download and a few minutes to start up)
-Navigate to localhost:3000 in your browser

(2) If you want to play around with the source code and build new images
-install docker: https://docs.docker.com/v17.12/install/
-git clone https://github.com/JackMGrundy/tech-skills-scraper-and-visualizer.git
-Navigate to /tech-skills-scraper-and-visualizer/frontend
-Execute "docker-compose up --build"
-Open localhost:3000 in browser

Architecture:
Components include:
A) Fronted: React interface
B) Backend: Node.js/Express. Serves two purposes: 1) Upon request from the front end, draws data from MongoDB, formats, and then sends the data back. This data is used to create a dashboard. 2) Manages a RabbitMQ message queue (see E).
C) Aforementioned MongoDB database
D) Aforementioned RabbitMQ message queue.
E) A celery process that retrieves messages from RabbitMQ and then spins up worker threads that use beautiful soup to scrape indeed. Stores results in MongoDB. Will run a Tor process and direct requests through it if specified.

Notes:

  1. There are two separate docker-compose.yml files, one for each build option: the first is at build-from-docker-hub/docker-compose.hml and pulls images from Docker hub, and the second is in the root folder.
  2. The docker-compose.yml files set key environment variables that control the app. Notably:
    a) TOR_ON: a boolean that indicates if requests will be sent through a Tor socket
    b) SLEEP_TIME: an int that indicates how many seconds to sleep between all requests
    c) SLEEP_TIME_POST_TASK: an int that indicates how many seconds to sleep after finishing a round of scraping

tech-skills-scraper-and-visualizer's People

Contributors

jackmgrundy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tech-skills-scraper-and-visualizer's Issues

License

Hi Jack,

does a specific license apply to your repo? Apache, BSD, CC or anything?
Can the code be used freely for whatever purpose?

Thanks

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.