npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

climate-change-news

v1.0.2

Published

This is a RESTful API that aggregates news articles related to climate change from various reputable sources on the web. It provides endpoints to fetch general climate change news as well as news from specific newspapers.

Downloads

6

Readme

Climate Change News API

This is a RESTful API that aggregates news articles related to climate change from various reputable sources on the web. It provides endpoints to fetch general climate change news as well as news from specific newspapers.

Features

  • General Climate Change News: Retrieve a list of climate change-related articles from various newspapers.
  • Specific Newspaper News: Fetch climate change news from a specific newspaper.
  • Flexible Configuration: Easily extendable to include more newspapers or customize existing sources.

Endpoints

  1. GET /news

    • Returns a list of climate change news articles from various newspapers.
  2. GET /news/:newspaperId

    • Returns climate change news articles from a specific newspaper identified by :newspaperId.

Setup

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Start the server using npm start.

Environment Variables

  • PORT: Port number for the server. Default is 8080.

Available Newspapers

The API fetches news from the following newspapers:

  • City AM
  • BBC
  • New York Times
  • Washington Post
  • Wall Street Journal
  • Telegraph
  • Independent
  • Times
  • The Sun
  • Daily Mail
  • Express
  • Mirror
  • Daily Star
  • Metro
  • Economist
  • Guardian
  • The Atlantic
  • The New Yorker
  • The Conversation
  • National Geographic
  • Scientific American
  • Nature
  • Greenpeace Climate Change
  • Climate Action Tracker

Technologies Used

  • Node.js
  • Express.js
  • Axios
  • Cheerio (for web scraping)

Usage

  • Access the API endpoints using a REST client or integrate them into your applications.

Note

  • The API fetches news articles dynamically from the web, so response times may vary depending on network conditions and the responsiveness of the news websites.

Disclaimer

  • This API is intended for educational and informational purposes only. The content served by this API belongs to the respective newspapers, and the API developer does not claim ownership or responsibility for the content.

License

  • This project is licensed under the MIT License. See the LICENSE file for more details.

Author

  • Sumuditha Lansakara

Feel free to contribute, report issues, or suggest improvements!