Skip to content

FastAPI Gaming News Aggregator: A lightweight web application built with FastAPI, fetching and presenting the latest gaming news from popular sources like GameRant and PC Gamer. Effortlessly filter news articles by topic and enjoy fast, asynchronous operations for a seamless user experience.

Notifications You must be signed in to change notification settings

Conseil039/Gaming-News-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Gaming News Aggregator

This FastAPI application aggregates gaming news from multiple sources and allows users to retrieve news based on specific topics.

Features

  • Fetches gaming news from GameRant and PC Gamer websites.
  • Allows filtering news by topics.
  • Implements caching mechanism to improve performance.
  • Asynchronous fetching of news articles.

Dependencies

  • Python 3.7+
  • FastAPI
  • uvicorn
  • BeautifulSoup
  • httpx
  • cachetools

Setup

  1. Clone the repository:

  2. Install dependencies:

Usage

  1. Run the application:

  2. Access the API using a web browser or tools like cURL or Postman:

Replace your_topic with the desired topic for filtering news articles.

Hosted Link

You can access the hosted version of this application here.

API Endpoints

  • GET /: Retrieve all news articles or filter by topic.
    • Query Parameter:
      • topic: Optional. Filter news articles by topic.

Caching

The application implements caching using the TTLCache from cachetools to store previously fetched news articles for faster retrieval.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License.

About

FastAPI Gaming News Aggregator: A lightweight web application built with FastAPI, fetching and presenting the latest gaming news from popular sources like GameRant and PC Gamer. Effortlessly filter news articles by topic and enjoy fast, asynchronous operations for a seamless user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%