Skip to content

Program to scrape and collate questions from 3-2-1 newsletter from James Clear

License

Notifications You must be signed in to change notification settings

unbeschwert/3-2-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

I really enjoy the 3-2-1 newsletter from James Clear. Especially, the questions that come at the end. It has often helped me take a minute and think about things at a macro level. This repository is a simple rust program that scraps the newsletter and extracts these questions to a file.

Update

Huge thanks to feedback from kpcyrd. I learned about the anyhow crate from them and have incorporated the suggested changes.

Instructions

The following commands can be used to generate the questions file:

git clone https://github.com/unbeschwert/3-2-1.git questions
cd questions 
cargo build
./target/debug/james-clear-3-2-1

The file can be found at $HOME/questions.

Further in Linux, one can do the following: Add alias question="cat $HOME/questions | shuf | head -1" to .bash_aliases and enjoy pondering about the questions.

Note

This program is tested on Ubuntu. If you have any questions or suggestions, please do create an issue here.

About

Program to scrape and collate questions from 3-2-1 newsletter from James Clear

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages