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
If others want to try it out, here's the latest torset python script.[382 lines deleted]
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
Maria Sophia <mariasophia@comprehension.com> writes:
If others want to try it out, here's the latest torset python script.[382 lines deleted]
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
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.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498677:07:41 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 910 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,826 |