You may have noticed by now that clicking on Google search links
sometimes or always makes you stop at a page to "permit" redirection
to another page, even though you clicked on it in the first place
and even though it never did this before. "The "redirect notice"
page usually appears because Google wraps outbound links with a
tracking parameter (google.com/url) to gather analytics and scan for malicious URLs".
I often copy and paste links into the following script for this reason.
I read from the clipboard all the time, but prefer to
use the standard library, so I,
On Sat, 25 Jul 2026 04:33:42 -0000 (UTC), Lawrence D?Oliveiro wrote:
I often copy and paste links into the following script for this
reason.
Why not use pyperclip? Then you can just use clipboard:
On Sat, 25 Jul 2026 15:59:03 GMT, Gilmeh Serda wrote:
On Sat, 25 Jul 2026 04:33:42 -0000 (UTC), Lawrence D?Oliveiro wrote:
I often copy and paste links into the following script for this
reason.
Why not use pyperclip? Then you can just use clipboard:
And then have to install a bunch of extra dependencies. My existing
script relies on nothing other than the standard Python library:
import sys
import re
from urllib import \
parse as urlparse
import getopt
That?s it.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498677:08:14 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 910 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,826 |