0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Automating small daily web tasks: a beginner checklistAutomating small daily web tasks: a beginner checklist

0
Posted at

I recently started automating the small web tasks I used to do by hand: checking whether a site is up, saving login sessions, and filling the same signup forms again and again. This post is a short checklist of what worked for me.

1. Start with boring, repeatable tasks

Good candidates:

  • Checking a list of URLs every morning
  • Exporting browser cookies for a site you log in to daily
  • Filling a long form with values you already know

If a task takes less than 30 seconds by hand but happens ten times a day, it is worth scripting.

2. A tiny fetch loop goes a long way

const targets = ["https://example.com", "https://example.org"];
for (const url of targets) {
  const res = await fetch(url);
  console.log(url, res.status);
}

This is the whole core of a status checker. Everything else is just formatting the output.

3. Keep credentials out of the script

Store emails and passwords in a local file the script reads, never inside the code itself. It keeps the scripts shareable and makes rotation easy when a password changes.

Closing thoughts

None of these tricks are clever, and that is the point. Small scripts that run every day quietly save more time than one big clever automation that breaks every week.

I plan to write up my cookie-export workflow next.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?