|
117 | 117 | 6. To know more about each argument supported by each filetype, `wdoc --help` |
118 | 118 | 7. There is a specific recursive filetype I should mention: `--filetype="link_file"`. Basically the file designated by `--path` should contain in each line (`#comments` and empty lines are ignored) one url, that will be parsed by WDoc. I made this so that I can quickly use the "share" button on android from my browser to a text file (so it just appends the url to the file), this file is synced via [syncthing](https://github.com/syncthing/syncthing) to my browser and WDoc automatically summarize them and add them to my [Logseq](https://github.com/logseq/logseq/). Note that the url is parsed in each line, so formatting is ignored, for example it works even in markdown bullet point list. |
119 | 119 | 8. If you want to make sure your data remains private here's an example with ollama: `wdoc --private --llms_api_bases='{"model": "http://localhost:11434", "query_eval_model": "http://localhost:11434"}' --modelname="ollama_chat/gemma:2b" --query_eval_modelname="ollama_chat/gemma:2b" --embed_model="BAAI/bge-m3" my_task` |
120 | | -9. Now say you just want to summarize a webpage: `wdoc summary --path="https://arstechnica.com/science/2024/06/to-pee-or-not-to-pee-that-is-a-question-for-the-bladder-and-the-brain/"`. |
| 120 | +9. Now say you just want to summarize [Tim Urban's TED talk on procrastination](https://www.youtube.com/watch?v=arj7oStGLkU): `wdoc summary --path 'https://www.youtube.com/watch?v=arj7oStGLkU' --youtube_language="english" --disable_md_printing`: |
| 121 | +> # Summary |
| 122 | +> ## https://www.youtube.com/watch?v=arj7oStGLkU |
| 123 | +> - The speaker, Tim Urban, was a government major in college who had to write many papers |
| 124 | +> - *He claims* his typical work pattern for papers was: |
| 125 | +> - Planning to spread work evenly |
| 126 | +> - Actually procrastinating until the last minute |
| 127 | +> - For his 90-page senior thesis: |
| 128 | +> - Planned to work steadily over a year |
| 129 | +> - *Actually* ended up writing 90 pages in 72 hours before the deadline |
| 130 | +> - Pulled two all-nighters |
| 131 | +> - Resulted in a 'very, very bad thesis' |
| 132 | +> - Urban is now a writer-blogger for 'Wait But Why' |
| 133 | +> - He wrote about procrastination to explain it to non-procrastinators |
| 134 | +> - *Humorously claims* to have done brain scans comparing procrastinator and non-procrastinator brains |
| 135 | +> - Introduces concept of 'Instant Gratification Monkey' in procrastinator's brain |
| 136 | +> - Monkey takes control from the Rational Decision-Maker |
| 137 | +> - Leads to unproductive activities like reading Wikipedia, checking fridge, YouTube spirals |
| 138 | +> - Monkey characteristics: |
| 139 | +> - Lives in the present moment |
| 140 | +> - No memory of past or knowledge of future |
| 141 | +> - Only cares about 'easy and fun' |
| 142 | +> - Rational Decision-Maker: |
| 143 | +> - Allows long-term planning and big picture thinking |
| 144 | +> - Wants to do what makes sense in the moment |
| 145 | +> - 'Dark Playground': where procrastinators spend time on leisure activities when they shouldn't |
| 146 | +> - Filled with guilt, dread, anxiety, self-hatred |
| 147 | +> - 'Panic Monster': procrastinator's guardian angel |
| 148 | +> - Wakes up when deadlines are close or there's danger of embarrassment |
| 149 | +> - Only thing the Monkey fears |
| 150 | +> - Urban relates his own experience procrastinating on preparing this TED talk |
| 151 | +> - *Claims* thousands of people emailed him about having the same procrastination problem |
| 152 | +> - Two types of procrastination: |
| 153 | +> - 1. Short-term with deadlines (contained by Panic Monster) |
| 154 | +> - 2. Long-term without deadlines (more damaging) |
| 155 | +> - Affects self-starter careers, personal life, health, relationships |
| 156 | +> - Can lead to long-term unhappiness and regrets |
| 157 | +> - *Urban believes* all people are procrastinators to some degree |
| 158 | +> - Presents 'Life Calendar': visual representation of weeks in a 90-year life |
| 159 | +> - Encourages audience to: |
| 160 | +> - Think about what they're procrastinating on |
| 161 | +> - Stay aware of the Instant Gratification Monkey |
| 162 | +> - Start addressing procrastination soon |
| 163 | +> - *Humorously* suggests not starting today, but 'sometime soon' |
| 164 | +> Tokens used for https://www.youtube.com/watch?v=arj7oStGLkU: '4365' ($0.00060) |
| 165 | +> Total cost of those summaries: '4365' ($0.00060, estimate was $0.00028) |
| 166 | +> Total time saved by those summaries: 8.4 minutes |
| 167 | +> Done summarizing. |
| 168 | +
|
121 | 169 |
|
122 | | -<p align="center"><img src="https://github.com/thiswillbeyourgithub/WDoc/blob/main/images/summary.png?raw=true" width="256"></p> |
123 | 170 |
|
124 | 171 | ## Getting started |
125 | 172 | *Tested on python 3.10 and 3.11.7* |
|
0 commit comments