Coder Social home page Coder Social logo

internship-test's Introduction

internship-test

Basic Test

Objective: Create a simple script to scrape Amazon product listings from the first page of search results for a given keyword.

Task Requirements:

Backend/API (Node.js): Set up a Node.js project with the necessary dependencies (express, axios and JSDOM). Write a script using axios to fetch the contents of the Amazon search results page for a given keyword. Use JSDOM to parse the HTML content and extract the following details for each product listing on the first page: Product Title Rating (stars out of five) Number of reviews Product image URL Create an endpoint /api/scrape where a GET request with a query parameter ?keyword=yourKeyword initiates the scraping process and returns the extracted data in JSON format. Frontend (HTML, CSS, Vanilla JavaScript): Develop a simple webpage with: An input field to enter the search keyword. A button to initiate the scraping process. Style the webpage to be user-friendly and presentable. Implement JavaScript to make an AJAX call to the backend endpoint when the button is clicked, and display the results formatted cleanly on the page. Documentation:

Provide comments within your code to offer clarity on your logic and process. Include a README.md file with the setup and running instructions Considerations:

Ensure you handle errors gracefully both on the backend and frontend. Provide clear instructions on how to run the application. The cleaner and more functional the code is, the better.

internship-test's People

Contributors

woragis avatar

Watchers

 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.