Skip to content

This is a Node.js application that scrapes random names from a website and exposes an API endpoint to retrieve these names.

Notifications You must be signed in to change notification settings

SazumiVicky/web-scraping-random-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Scraping Random Name

This is a Node.js application that scrapes random names from a website and exposes an API endpoint to retrieve these names.

Installation

  1. Clone the repository:

git clone https://github.com/SazumiVicky/web-scraping-random-name.git
  1. Navigate to the project directory:

cd web-scraping-random-name
  1. Install dependencies:

npm install

Usage

Start the server

node index.js
  1. Once the server is running, you can access the random names by making a GET request to:

http://localhost:3000/get/names/random
  1. Example using cURL:

curl http://localhost:3000/get/names/random

Example response:

[
  {
    "name_1": {
      "First Name": "Clara",
      "Last Name": "Middleton"
    }
  },
  {
    "name_2": {
      "First Name": "Phillip",
      "Last Name": "Gutierrez"
    }
  },
  ...
]

Dependencies

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

About

This is a Node.js application that scrapes random names from a website and exposes an API endpoint to retrieve these names.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published