Skip to content

ranbot-ai/top-universities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Top Universities | 2025 Activity

A Node.js project to scrape university rankings data from top1000.com and save it to CSV format.

Features

  • Fetches top 1000 universities ranking data
  • Extracts university name, city, country, website, and index score
  • Exports data to CSV format
  • Clean and simple Node.js implementation

Installation

npm install

Usage

Run the scraper:

npm start

The script will:

  1. Fetch data from the universities ranking website
  2. Parse the HTML table
  3. Save the data to universities.csv in the project directory
  4. Display a preview of the first 5 entries

Output

The generated universities.csv file contains the following columns:

  • Rank: Position in the ranking (1-1000)
  • University: Name of the university
  • City: City where the university is located
  • Country: Country where the university is located
  • Website: University website URL
  • Index: Ranking index score (0-999)

Dependencies

  • axios: HTTP client for fetching web pages
  • cheerio: HTML parsing and manipulation
  • csv-writer: CSV file creation

Example Output

Rank,University,City,Country,Website,Index
1,Harvard University,Cambridge,United States of America,https://...,998
2,Massachusetts Institute of Technology (MIT),Cambridge,United States of America,https://...,997
3,Stanford University,Stanford,United States of America,https://...,995
...

Notes

  • The scraper includes a User-Agent header to ensure proper access to the website
  • If the website structure changes, the selectors in index.js may need to be updated
  • Please be respectful of the website's resources and avoid excessive requests

About

A Node.js project to scrape university rankings data from [top1000.com](https://top1000.com/top-1000-universities-in-the-world/) and save it to CSV format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors