| Deutsch English Français Italiano |
|
<linsg6FeeauU1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.lang.python
Subject: Re: new here
Date: 22 Aug 2024 04:18:14 GMT
Lines: 45
Message-ID: <linsg6FeeauU1@mid.individual.net>
References: <87ikvuzv8g.fsf@rpi3> <liktbqFgjfU2@mid.individual.net>
<871q2hzifa.fsf@rpi3>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 9QcOzW16a0UzddhuGvwsxwZjtPReC6ShKxNdKZxVVVXZ0P8TPM
Cancel-Lock: sha1:d5Hhn3fJRb56LwEJPEmYv40wpjk= sha256:SBv69N+55KcTB+qTGaa6AXX4k14cpt4g4N9YKDnUBAY=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Bytes: 2138
On Wed, 21 Aug 2024 22:15:37 +0100, Daniel wrote:
> Lesser used protocols not known by many in the mainstream. Such as:
>
> gopher, gemini, finger, spartan, titan, etc.
>
> An example of use, here's a weather service tied to a finger. Put your
> city name as the user. This isn't mine, but it is inspiring. Example:
>
> finger miami@graph.no
>
> For all options, go to the help finger:
>
> finger help@graph.no
Thanks. Interesting. I was surprised a Norwegian site would have data for
a small city in the US. I have a Python script that accesses the NOAA
(National Oceanic and Atmospheric Administration) API and the data in the
Meteogram appears to match well. fwiw, all that does is
observation_url = f"https://api.weather.gov/stations/K{grid_id}/
observations/latest"
response = requests.get(observation_url).json()
using the Python 'requests' package and then parsing out the JSON.
Implementing finger probably would be a straight socket connection. I
don't know how useful this is:
https://pypi.org/project/pyfinger/
I assume gopher is fron the archie, veronica, and jughead days. It appears
straightforward.
https://datatracker.ietf.org/doc/html/rfc1436
It's another use of a simple socket connection.
https://docs.python.org/3/howto/sockets.html
You may be able to gleam something from
https://sr.ht/~lioploum/offpunk/