Giter VIP home page Giter VIP logo

imdb-scapper's Introduction

HTTP & Async in Node.js Workshop

You are given a few simple tasks in order to exercise the skills learned through the first lectures from the Node.js course. The main goal is to improve your knowledge on using async operations, modules and building the design of your applications, all that in a Node.js environment.

General description

Extend the IMDB scrapper from here. Now, the scrapper only parses simple information about each movie (its title and id in IMDB).

Task 1: Fork the repository

  • Fork the repository in your account
  • Add your teammates as committers

Task 2: Extract more modules from the app.js file

  • Extract the wait() method
  • Find a way to improve the generation of urls
  • Extract all "magic" values to meaningful constants
  • Extract into a module all simple-movie-scrapping functionality
    • app.js should be just the entry-point of the application

Task 3: Fill your database

  • Using the simple-movie-scrapping functionality, extract in your database ~2000 movies

Task 4: Get full information about each movies

  • Write functionality for extracting detailed information for the simple movies

    • Store them in a new collection, i.e. MovieDetails
    • Do not change the SimpleMovie mongoose model in any way
  • For each movie extract:

    • At least one cover image (its link)
    • Optional trailer (its link), if one is available
    • Title
    • Description/Storyline
    • Categories (Genres)
    • Release date
    • List of actors
      • Nested documents
      • Have name of the role in the movie, name, id in IMDB and profile image (its link)
    • Use this page for reference

Task 5: Get information about actors

  • Write functionality for extracting detailed information for actors

    • Store them in a new collection, i.e. Actors
    • Do not store actors detailed info in SimpleMovie or MovieDetails mongoose models
  • For each actor extract:

    • At least profile image (its link)
    • Name
    • Biography
    • A list of movies, he took part in:
      • For each movie extract name of the movie, the id of the Movie in IMDB, and the name of the character
    • Use this page for reference

Task 6: Review

  • Review your application and think of a way to improve the quality
    • More abstraction of the modules
    • Extracting constants and "magic" values
    • etc...

Task 7: Submit the code

imdb-scapper's People

Contributors

ikupenov avatar kalostoykov avatar minkov avatar

Watchers

 avatar  avatar  avatar  avatar

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.