Giter Club home page Giter Club logo

dumbass-news's Introduction

Dumbass News - a web service to report dumbass news

Copyright (C) 2022 Mike Taylor [email protected]

Licensed under the GNU General Public License (GPL) v3.0.

Overview

This program runs a web server which harvests news headlines from various sources, and presents them to the user transformed in various ways. In its canonical manifestation, it presents BBC news headlines with the adjective "dumbass" inserted in front of some nouns, as in

  • PM warned about dumbass lockdown drinks, claims Cummings
  • Ministers suffer defeats in Lords over dumbass crime bill
  • French far-right candidate guilty of dumbass hate speech
  • Woman completes dumbass bid to run length of New Zealand.

This is in part a response to how incredibly stupid nearly every news story seems to be at the moment (17 January 2022).

Other news sources that provide RSS feeds are supported, if added to the configuration file. In time, I may add support for other kinds of source. I may also add support for other transformations.

Compilation

Dumbass News is written in the Go programming language. Assuming you gave Go installed, you just need to run make in the src directory. A binary, dumbass-news will be created in that directory. Running it will start a web-server running on the host and port specified in the configuration file (see below).

Invocation

src/dumbass-news etc/config.json

The only command-line argument is the name of a JSON configuration file which specifies details such as what port to listen to, what categories of information to log, which news channels are supported and which transformations can be carried out on them (see below).

Apart from the home page, the server provides pages at URLs of the form http://HOST:PORT/CHANNEL/TRANSFORMATION, where CHANNEL is a channel key from the configuration file (see below) and TRANSFORMATION is a transformation key. For example, http://localhost:12368/bbc/dumbass serves the BBC news channel with the Dumbass transformation.

Further documentation

Warning! Lark's Vomit!

This exists primarily because I wanted to write something in Go as part of learning the language. It is probably bad code, and should not be studied or emulated. If anyone apart from me is childish enough to find it amusing, that's just a bonus.

dumbass-news's People

Contributors

miketaylor avatar

Watchers

 avatar  avatar

dumbass-news's Issues

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.