tir – short for "Today I Read" – is a barebones CLI for logging memorable articles. It's archived; use tiir instead!
The aim is to collect everything you read every day so you can find and share it. No more "I forget where I read it..."
This was supposed to be functionality that I'd build into ezrss, but I'm finding that difficult (because that would require scraping a whole bunch of text that is structured differently). There might be eventual integration, but not right now.
-
Download/unzip or clone this repository:
git clone https://github.com/lukasschwab/tir.git
. -
Optionally, move
index.html
to a desired location (e.g. if you don't want to host tir separately, moveindex.html
into a GitHub Pages repo). Simplest setup with GitHub Pages would be to create a gh-pages branch (git branch gh-pages
) and leaveindex.html
where it is. -
Modify tir/__main__.py so that the path on line four points to your local copy of
index.html
. For example,html = "~/Desktop/tir/index.html"
. -
After changing that path, run
python setup.py install
from the project root directory. -
From the command line, just run
tir
. To undo an entry, runtir --delete
. To push changes to GitHub, runtir -p
.
-
Add an empty RSS feed XML file to a location where it'll be tracked (it would make sense to put this in the same directory as
index.html
). For example, see feed.xml. -
Modify tir/__main__.py to point at the correct feed file.
By default, tir will add new items to the top of the table. To reverse this, toggle the flag INORDER
in __main__.py
.
If you want to transition from one ordering to the other––i.e. if you have an established tir page with INORDER = True
and you want to switch to INORDER = False
or vice versa, use reverse.py
.
- Only list last 15 or so tirs in the feed (cleanup)
- Maybe need to include date as an attr for each item element? Shouldn't screw up the rest...
- ON ADD:
- Check if there are 15+ items.
- Iterate through and map parsed datetime to item. Get minimum key (datetime, all naive probably) and then delete that item.