Everything looked interesting - big kudos to the very simple design- , the paradox of choice led me to think of a way where I don't have to choose what to read, and delegate this task to an automated process. You can find the source code here.
the starting point was to scrape the archive web page, and think of a way to return a random article in the page.
I have very basic knowledge in Python, but it was enough for what I needed to do.
the script does the following:
- gets the archive webpage.
- parses the file to get all the
- generates a number between 1 and the number of
atags in the page.
- returns the link in the
atag for the generated number.
You can then run this script from the command line:
And it opens a link in your web browser!
For a better UX, we can create a chrome extension which runs the the script above.
We have two options: