{"id":20866621,"url":"https://github.com/devansh-bhagania/nodejs_web_scraper_cheerio","last_synced_at":"2026-05-06T11:33:00.473Z","repository":{"id":250927941,"uuid":"835887223","full_name":"Devansh-Bhagania/NODEJS_WEB_SCRAPER_CHEERIO","owner":"Devansh-Bhagania","description":"A CHEERIO  Node.js scraper designed to extract and save content from Wikipedia pages. It uses axios for making HTTP requests, cheerio for parsing HTML, and fs-extra for file operations.","archived":false,"fork":false,"pushed_at":"2024-07-30T18:20:18.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"devansh","last_synced_at":"2025-03-12T15:34:40.554Z","etag":null,"topics":["cheerio","json","nodejs","scrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devansh-Bhagania.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T18:12:24.000Z","updated_at":"2024-07-30T18:19:44.000Z","dependencies_parsed_at":"2024-07-30T22:39:28.737Z","dependency_job_id":null,"html_url":"https://github.com/Devansh-Bhagania/NODEJS_WEB_SCRAPER_CHEERIO","commit_stats":null,"previous_names":["devansh-bhagania/nodejs_web_scraper_cheerio"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Devansh-Bhagania/NODEJS_WEB_SCRAPER_CHEERIO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh-Bhagania%2FNODEJS_WEB_SCRAPER_CHEERIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh-Bhagania%2FNODEJS_WEB_SCRAPER_CHEERIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh-Bhagania%2FNODEJS_WEB_SCRAPER_CHEERIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh-Bhagania%2FNODEJS_WEB_SCRAPER_CHEERIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devansh-Bhagania","download_url":"https://codeload.github.com/Devansh-Bhagania/NODEJS_WEB_SCRAPER_CHEERIO/tar.gz/refs/heads/devansh","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh-Bhagania%2FNODEJS_WEB_SCRAPER_CHEERIO/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260552095,"owners_count":23026755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cheerio","json","nodejs","scrapper"],"created_at":"2024-11-18T05:58:40.369Z","updated_at":"2026-05-06T11:32:55.452Z","avatar_url":"https://github.com/Devansh-Bhagania.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wikipedia Scraper\n\nThis project is a simple Node.js scraper designed to extract and save content from Wikipedia pages. It uses `axios` for making HTTP requests, `cheerio` for parsing HTML, and `fs-extra` for file operations.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [How It Works](#how-it-works)\n- [Setup and Installation](#setup-and-installation)\n- [Usage](#usage)\n- [Files and Directories](#files-and-directories)\n- [Important Notes](#important-notes)\n- [License](#license)\n\n## Overview\n\nThis scraper fetches content from Wikipedia pages and saves the data in JSON format. It demonstrates how to perform web scraping, handle asynchronous operations, and manage file I/O in Node.js.\n\n## How It Works\n\n1. **Fetch Data**: The scraper uses `axios` to send HTTP GET requests to Wikipedia pages.\n2. **Parse HTML**: The HTML content of the pages is parsed using `cheerio`, which allows easy extraction of relevant information.\n3. **Extract Information**: The title of the page and its main content are extracted from the HTML.\n4. **Save Data**: The extracted data is saved as JSON files in a specified directory using `fs-extra`.\n\n## Setup and Installation\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/your-username/wikipedia-scraper.git\n   cd wikipedia-scraper\n   ```\n2. **Installing dependencies**\n   ```bash\n   npm install\n   ```\n3. **Update Scraper Configuration**\n   ```bash\n   const PAGES = ['Node.js', 'JavaScript', 'Web_scraping'];\n   ```\n4. **Run the Scraper**\n   ```bash\n   node scraper.js\n   ```\nAfter running the scraper, check the data directory for JSON files. Each file will contain the title and content of a specific Wikipedia page.\n   \n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansh-bhagania%2Fnodejs_web_scraper_cheerio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevansh-bhagania%2Fnodejs_web_scraper_cheerio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansh-bhagania%2Fnodejs_web_scraper_cheerio/lists"}