GithubHelp home page GithubHelp logo

ai-fake-news's Introduction

AI Fake News

A lightweight ai generated news site, for fun.

Note: It's clearly marked "fake news" to not cause confusion.

About

Theres two types of pages you can view.

  • The front page (via accessing "/" path)
    • Each day the front page is generated with headlines from the frontpage of https://bloomberg.com.
      • Some slight headline modifications might exist.
      • 100% ai generated articles based on the headline and certain prompts.
  • Custom pages (the fun part)
    • Allows for generating custom pages on the fly, with custom prompts.
    • Requires a news category and prompt. Example: "Category: ["Technology"], Prompt: articles about technology ai apocolypse"
    • Custom pages are queued and processed. When the page is ready, it can be viewed on the path "/topics/{category}/{headline-article-name}"
    • Custom pages expire after 1 month unless marked "keep forever".

Technology Used

  1. Go for backend
    • html-web-crawler to fetch real articles
    • Gemini for ai generated content
  2. Go for frontend!
    • html/template to build webpage without javascript
    • Simple fetch javascript used to generate new pages and link to them.
  3. dynamodb to store information permantently

Total site in a 20MB binary, which can be run directly or from docker container. If you don't provide aws info, it will run in-memory without a database.

ai-fake-news's People

Contributors

gtsteffaniak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.