Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iandioch/ceres
A homepage / online business card that updates with live data
https://github.com/iandioch/ceres
euler homepage lastfm scraper twitter website
Last synced: 27 days ago
JSON representation
A homepage / online business card that updates with live data
- Host: GitHub
- URL: https://github.com/iandioch/ceres
- Owner: iandioch
- Created: 2016-10-25T22:56:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T21:50:16.000Z (12 months ago)
- Last Synced: 2024-03-15T19:32:17.965Z (8 months ago)
- Topics: euler, homepage, lastfm, scraper, twitter, website
- Language: HTML
- Homepage: http://noah.needs.money
- Size: 451 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ceres
This is a dumbly-named repo containing the scripts that power my live-updating
website, viewable [here](http://noah.needs.money).The website is built with Flask. It is made up of a core template (see
`/templates/index.html`), which is rendered when the path `/` is requested.
There is a directory `/raw`; everything in here is served as-is from the path
`/raw/`. In here are some useful files (CV, etc), along with the
favicon, and `cards.js`, which is referred to from the core template. This JS
makes a request every 30 seconds to `/cards`.If you view the live website, you will see that there are a number of sections
("cards") with live-updating data. Eg. the last-played song on Last.fm, my most
recent tweet, etc. All of this live data is what is returned from the `/cards`
endpoint, as JSON.Cards are listed in the `cards` directory. Each contains some script file, which
is added to the crontab on the machine the website is running on. Each script
file simply, when triggered, does some lookup, and outputs a `data.json` file
in the same directory as the script. The server then collates all of these
`data.json` files and returns them when the `/cards` path is queried.From this combination of cronjobs and python scripts, live(-ish) data is served.