<story><title>Ask HN: Small scripts, hacks and automations you&apos;re proud of?</title><text>I sometimes think back fondly of the small automation scripts I wrote over the years, so I wanted to ask you: Which scripts, hacks &amp;amp; automations did you create that your&amp;#x27;re proud of? Personally, I e.g. built a bot to automatically answer apartment ads [1], a small script to run Borg backup once per day [2], and a small automation to track the temperature in my aquarium [3].&lt;p&gt;1: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;c9b2a71457c6c6f01f2f&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;c9b2a71457c6c6f01f2f&lt;/a&gt;&lt;p&gt;2: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;02e8a1f662d100a7ed80627801d0aed0&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;02e8a1f662d100a7ed80627801d0a...&lt;/a&gt;&lt;p&gt;3: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;7a4c20a5a7379e19d78ba54521d3dc7d&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;7a4c20a5a7379e19d78ba54521d3d...&lt;/a&gt;</text></story><parent_chain><item><author>vagabund</author><text>So certainly not impressive, and morally ambiguous, but when chatGPT first released, I worked with it to create a python script that crawled The New Yorker sitemaps, found articles with embedded audio versions, downloaded the mp3 by reconstructing the file url using the article ID in the page source, and then renamed the file to match the page title and saved it to a well structured Google Drive directory.  Now when I walk my dog, exercise, or clean, I&amp;#x27;ll put on a random article and have a much more enjoyable experience than a podcast would offer.  The mp3s were publicly available so I think it&amp;#x27;s fine for personal use?&lt;p&gt;I&amp;#x27;d never written a line of code in my life, so going through the iterative process of getting it functioning and fixing bugs was pretty invigorating.  I could see where the generated code was going awry and describe it in natural language, and chatGPT would turn that into syntax and explain why it worked. Definitely a fun way to learn.&lt;p&gt;I&amp;#x27;m sure it&amp;#x27;s ugly&amp;#x2F;inefficient, but here&amp;#x27;s the script:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pastebin.com&amp;#x2F;raw&amp;#x2F;DuAVAikD&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pastebin.com&amp;#x2F;raw&amp;#x2F;DuAVAikD&lt;/a&gt;</text></item></parent_chain><comment><author>johtso</author><text>&amp;quot;going through the iterative process of getting it functioning and fixing bugs was pretty invigorating.&amp;quot;&lt;p&gt;Damn right it is! Writing scrapers is definitely the gateway drug of programming. It&amp;#x27;s such an exciting feeling to step across the boundaries from &amp;quot;passive user at the mercy of the UI&amp;quot; to &amp;quot;I can do anything if I can conceptualise it (and break it up into steps)&amp;quot;.</text></comment>
<story><title>Ask HN: Small scripts, hacks and automations you&apos;re proud of?</title><text>I sometimes think back fondly of the small automation scripts I wrote over the years, so I wanted to ask you: Which scripts, hacks &amp;amp; automations did you create that your&amp;#x27;re proud of? Personally, I e.g. built a bot to automatically answer apartment ads [1], a small script to run Borg backup once per day [2], and a small automation to track the temperature in my aquarium [3].&lt;p&gt;1: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;c9b2a71457c6c6f01f2f&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;c9b2a71457c6c6f01f2f&lt;/a&gt;&lt;p&gt;2: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;02e8a1f662d100a7ed80627801d0aed0&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;02e8a1f662d100a7ed80627801d0a...&lt;/a&gt;&lt;p&gt;3: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;7a4c20a5a7379e19d78ba54521d3dc7d&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;adewes&amp;#x2F;7a4c20a5a7379e19d78ba54521d3d...&lt;/a&gt;</text></story><parent_chain><item><author>vagabund</author><text>So certainly not impressive, and morally ambiguous, but when chatGPT first released, I worked with it to create a python script that crawled The New Yorker sitemaps, found articles with embedded audio versions, downloaded the mp3 by reconstructing the file url using the article ID in the page source, and then renamed the file to match the page title and saved it to a well structured Google Drive directory.  Now when I walk my dog, exercise, or clean, I&amp;#x27;ll put on a random article and have a much more enjoyable experience than a podcast would offer.  The mp3s were publicly available so I think it&amp;#x27;s fine for personal use?&lt;p&gt;I&amp;#x27;d never written a line of code in my life, so going through the iterative process of getting it functioning and fixing bugs was pretty invigorating.  I could see where the generated code was going awry and describe it in natural language, and chatGPT would turn that into syntax and explain why it worked. Definitely a fun way to learn.&lt;p&gt;I&amp;#x27;m sure it&amp;#x27;s ugly&amp;#x2F;inefficient, but here&amp;#x27;s the script:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pastebin.com&amp;#x2F;raw&amp;#x2F;DuAVAikD&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pastebin.com&amp;#x2F;raw&amp;#x2F;DuAVAikD&lt;/a&gt;</text></item></parent_chain><comment><author>prashantsengar</author><text>Pretty impressive to be able to create such a script when you haven&amp;#x27;t programmed before.&lt;p&gt;I used to freelance when I learnt to code in college and I wrote many such small automation scripts for quite a few people. Looks like the AI is already taking away some jobs ;)</text></comment>