• Re: PSA: Python script for selecting Tor exit nodes in Firefox Tor Brow

    From Lawrence D?Oliveiro@3:633/10 to All on Mon Nov 9 22:49:40 2026
    Subject: Re: PSA: Python script for selecting Tor exit nodes in Firefox Tor Browser

    On Mon, 9 Nov 2026 10:27:21 -0400, Maria Sophia wrote:

    try:

    ...

    except Exception as e:
    print(f"\nError: {e}", file=sys.stderr)
    sys.exit(1)
    finally:
    if stream:
    try:
    stream.close()
    except Exception:
    pass
    if s:
    try:
    s.close()
    except Exception:
    pass

    Get rid of that enclosing try-block.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Keith Thompson@3:633/10 to All on Tue Nov 10 15:35:18 2026
    Subject: Re: PSA: Python script for selecting Tor exit nodes in Firefox Tor Browser

    Maria Sophia <mariasophia@comprehension.com> writes:
    If others want to try it out, here's the latest torset python script.
    To give people more options, I added five different sets of choices.

    Since we don't want everyone using the same exit nodes, I removed the
    actual exit nodes, replacing with dummy nodes, to avoid that happening.

    Exit-node fingerprints should be personally selected, which is easy for
    your country of choice using this site to find known good exit nodes.
    <https://metrics.torproject.org> then select "Relay Search" at bottom

    #!/usr/bin/env python3
    [382 lines deleted]

    Usenet is a very bad way to distribute source code. I can't just
    download a source file; I have to save the article and manually
    extract it. There's a risk that some software along the way will
    fold long lines or mess up tabs and spaces, which are of course
    semantically significant in Python. If you post a new version,
    there's no good way to see what's changed.

    If you want to share your source code, I urge you to set up a
    repository that you can update with new versions. GitHub is the
    most popular site, but there are alternatives. You can always post
    links here.

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    void Void(void) { Void(); } /* The recursive call of the void */

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Blaine@3:633/10 to All on Tue Nov 10 16:50:43 2026
    Subject: Re: PSA: Python script for selecting Tor exit nodes in Firefox Tor Browser

    Keith Thompson wrote:
    Maria Sophia <mariasophia@comprehension.com> writes:
    If others want to try it out, here's the latest torset python script.
    To give people more options, I added five different sets of choices.

    Since we don't want everyone using the same exit nodes, I removed the
    actual exit nodes, replacing with dummy nodes, to avoid that happening.

    Exit-node fingerprints should be personally selected, which is easy for
    your country of choice using this site to find known good exit nodes.
    <https://metrics.torproject.org> then select "Relay Search" at bottom

    #!/usr/bin/env python3
    [382 lines deleted]

    Usenet is a very bad way to distribute source code. I can't just
    download a source file; I have to save the article and manually
    extract it. There's a risk that some software along the way will
    fold long lines or mess up tabs and spaces, which are of course
    semantically significant in Python. If you post a new version,
    there's no good way to see what's changed.

    If you want to share your source code, I urge you to set up a
    repository that you can update with new versions. GitHub is the
    most popular site, but there are alternatives. You can always post
    links here.

    What about usenet attachments? I know they don't work for binaries, but doesn't it allow text attachments?
    --
    Hits like a Phillips head into my brain
    It's gonna be too dark to sleep again
    Cutting my teeth on bars and rusty chains
    I'm gonna break my rusty cage And run

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)