Code Monkey home page Code Monkey logo

ceefax's Introduction

CEEFAX

This is a set of Python3 scripts which generate a Ceefax-like teletext service from the following websites:

  • BBC News
  • BBC Sport
  • UK Met Office

It can be configured using the YAML file defaults.yaml.

The output is in the "Viewdata escaped" version of the TTI file format.

Modules required to use

  • dateutil, to parse dates from feeds

    sudo apt install python3-dateutil
    
  • AdvancedHTMLParser, to extract information from HTML pages

    pip3 install AdvancedHTMLParser
    

    NB. There's a bug in AdvancedHTMLParser: kata198/AdvancedHTMLParser#12

    Run

    pico +1272 ~/.local/lib/python3.7/site-packages/AdvancedHTMLParser/Parser.py
    

    and change "self.useIndex" to "useIndex".

  • CacheControl, to cache fetched pages. Filecache stores the contents in the fileystem

    pip3 install CacheControl[filecache]
    
  • feedparser, to fetch and parse RSS feeds.

    pip3 install feedparser
    
  • PyYAML, to read the configuration file.

    pip3 install PyYAML
    
  • MetOffer. Fixed version included here as upstream version has bugs which haven't been fixed for 18 months.

Credits

I'm indebted to Nathan for originally writing makeceefax.php, and for his subsequent help and encouragement.

Other resources

Teletext on the Raspberry Pi

ceefax's People

Contributors

avrovulcanxh607 avatar nowster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

a038537

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.