• gopher and queries

    From Daniel@21:1/5 to All on Tue Aug 20 21:11:15 2024
    Impressed with the ingenuity of gopher creators out there, I decided to
    give it a go. A source of inspiration is gopherpedia.com. A tool I use
    daily, absolutely love it!

    And after reading his phlog post about it, I saw that he created a proxy
    and wrote code to scrape the data from wikipedia and output to a format compatible with gopher.. Fair enough.

    I thought it was too much work. Why not just run the script locally and
    use the wikimedia api? Right?

    So I started learning python and working through parsing the json data
    for wiktionary. The goal: build a gopher interface to wiktionary - a
    sister site, of sorts, for gopherpedia. Then, it dawned on me this
    morning that my approach could possibly be wrong. How would I trigger
    a script to run from a gopher page? I don't know, so I come here.

    Do the good people concur with my opinion? Or is there a way I can do
    it the way I envision? Right now, I'm using python and, at this
    point, my script is pretty close. A query will search, filter, then
    format the output to standard ascii. But, i'm afraid that the work
    I've done is useless.

    Here's the flow:

    User goes to gopherict.com > word lookup > type word > press enter >
    script executes query to wiktionary.org > downloads and filters >
    creates gopher page of resulting definition > user displays

    I hope you all have good news for me.

    Daniel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mateusz Viste@21:1/5 to All on Wed Aug 21 10:39:50 2024
    dn. Tue, 20 Aug 2024 21:11:15 +0100, Daniel napisaƂ:
    So I started learning python and working through parsing the json data
    for wiktionary. The goal: build a gopher interface to wiktionary - a
    sister site, of sorts, for gopherpedia. Then, it dawned on me this
    morning that my approach could possibly be wrong. How would I trigger
    a script to run from a gopher page? I don't know, so I come here.

    You should find the answer to this question in the documentation
    of the gopher server you use. Depending on the exact implementation of
    your gopher server it may or may not be possible to execute scripts
    from within gopher pages. For example the way to do it with Motsognir
    is explained page 15 of its manual: <http://sourceforge.net/p/motsognir/code/HEAD/tree/trunk/manual.pdf?format=raw>


    Mateusz
    --
    gopher://gopher.viste.fr

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From f6k@21:1/5 to Mateusz Viste on Wed Aug 21 22:53:22 2024
    On 2024-08-21, Mateusz Viste <mateusz@x.invalid> wrote:
    You should find the answer to this question in the documentation
    of the gopher server you use. Depending on the exact implementation of
    your gopher server it may or may not be possible to execute scripts
    from within gopher pages. For example the way to do it with Motsognir
    is explained page 15 of its manual:
    <http://sourceforge.net/p/motsognir/code/HEAD/tree/trunk/manual.pdf?format=raw>

    As an other example, gophernicus supports the the CGI/1.1 standard
    (within a dedicated folder in the server). Even gophermaps can be
    processed as CGI script if made executable. Check: https://github.com/gophernicus/gophernicus#cgi-support

    -f6k

    --
    ~{,_,"> huld.re <",_,}~

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniel@21:1/5 to f6k@huld.re on Thu Aug 22 09:03:08 2024
    f6k <f6k@huld.re> writes:

    On 2024-08-21, Mateusz Viste <mateusz@x.invalid> wrote:
    You should find the answer to this question in the documentation
    of the gopher server you use. Depending on the exact implementation of
    your gopher server it may or may not be possible to execute scripts
    from within gopher pages. For example the way to do it with Motsognir
    is explained page 15 of its manual: >><http://sourceforge.net/p/motsognir/code/HEAD/tree/trunk/manual.pdf?format=raw>

    As an other example, gophernicus supports the the CGI/1.1 standard
    (within a dedicated folder in the server). Even gophermaps can be
    processed as CGI script if made executable. Check: https://github.com/gophernicus/gophernicus#cgi-support

    -f6k

    Thanks, yes I found out (after sending my question) that I can create a
    cgi script within a python script.

    I'm working on a sister gopher to gopherpedia but instead an interface
    to wiktionary.org. Instead of creating a proxy and scraping
    the page, I'm using the wikimedia api. Getting close to a functional and
    stable script.

    Then I'll work the cgi angle and stand up a test gopher before it goes
    live. It'll be my public service to the gopherverse.

    Daniel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From vlad@21:1/5 to Daniel on Thu Nov 28 21:03:40 2024
    On 8/20/2024 4:11 PM, Daniel wrote:
    Impressed with the ingenuity of gopher creators out there, I decided to
    give it a go. A source of inspiration is gopherpedia.com. A tool I use
    daily, absolutely love it!

    And after reading his phlog post about it, I saw that he created a proxy
    and wrote code to scrape the data from wikipedia and output to a format compatible with gopher.. Fair enough.

    I thought it was too much work. Why not just run the script locally and
    use the wikimedia api? Right?

    So I started learning python and working through parsing the json data
    for wiktionary. The goal: build a gopher interface to wiktionary - a
    sister site, of sorts, for gopherpedia. Then, it dawned on me this
    morning that my approach could possibly be wrong. How would I trigger
    a script to run from a gopher page? I don't know, so I come here.

    Do the good people concur with my opinion? Or is there a way I can do
    it the way I envision? Right now, I'm using python and, at this
    point, my script is pretty close. A query will search, filter, then
    format the output to standard ascii. But, i'm afraid that the work
    I've done is useless.

    Here's the flow:

    User goes to gopherict.com > word lookup > type word > press enter >
    script executes query to wiktionary.org > downloads and filters >
    creates gopher page of resulting definition > user displays

    I hope you all have good news for me.

    Daniel


    Not sure this is part of the gopher protocol but ...
    My server is gophernicus and it can execute CGI scripts I have pages
    where you enter something then a script executes and returns something
    relevant as a gopher page.



    --
    This email has been checked for viruses by AVG antivirus software.
    www.avg.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Boone@21:1/5 to All on Sat Nov 30 00:03:55 2024
    Not sure this is part of the gopher protocol but ...
    My server is gophernicus and it can execute CGI scripts I have pages
    where you enter something then a script executes and returns something relevant as a gopher page.

    This would be a server implementation detail, not a protocol detail.

    My frustration was that there was a selector type for "search returning directory", but not one for "search returning document". I tried to
    convince McCahill and crew to add such a thing, but they had developed
    the Gopher+ concept, and weren't interested.

    De

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Boone@21:1/5 to All on Sat Nov 30 00:22:04 2024
    I'm working on a sister gopher to gopherpedia but instead an interface
    to wiktionary.org. Instead of creating a proxy and scraping
    the page, I'm using the wikimedia api. Getting close to a functional and stable script.

    In the early 90s, I built a gopher gateway to usenet. It was its own standalone gopher server, and spoke NNTP to the campus news server. The tradeoffs are that you have to implement at least some of the gopher
    protocol, but in return you get to maintain state about the back end connections, cache things, etc.

    De

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arti F. Idiot@21:1/5 to Dennis Boone on Mon Dec 9 11:54:31 2024
    On 11/29/24 5:03 PM, Dennis Boone wrote:
    > Not sure this is part of the gopher protocol but ...
    > My server is gophernicus and it can execute CGI scripts I have pages
    > where you enter something then a script executes and returns something
    > relevant as a gopher page.

    This would be a server implementation detail, not a protocol detail.

    My frustration was that there was a selector type for "search returning directory", but not one for "search returning document". I tried to
    convince McCahill and crew to add such a thing, but they had developed
    the Gopher+ concept, and weren't interested.

    De

    On a related thought, is there any limit on the query string length for
    Type 7 queries or is it client/server dependent?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniel@21:1/5 to Dennis Boone on Mon Dec 16 16:52:31 2024
    drb@ihatespam.msu.edu (Dennis Boone) writes:

    I'm working on a sister gopher to gopherpedia but instead an interface
    to wiktionary.org. Instead of creating a proxy and scraping
    the page, I'm using the wikimedia api. Getting close to a functional and stable script.

    In the early 90s, I built a gopher gateway to usenet. It was its own standalone gopher server, and spoke NNTP to the campus news server. The tradeoffs are that you have to implement at least some of the gopher protocol, but in return you get to maintain state about the back end connections, cache things, etc.

    Interesting. What happened to it? I"m sure your campus no longer
    operates usenet?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Boone@21:1/5 to All on Mon Dec 16 18:51:22 2024
    Interesting. What happened to it? I"m sure your campus no longer
    operates usenet?

    We shut it down before 1998, along with the public gopher service
    we ran. Pretty sure I had the code on a tape, but I think I've misplace
    the tape. :(

    De

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniel@21:1/5 to Dennis Boone on Mon Dec 16 22:57:16 2024
    drb@ihatespam.msu.edu (Dennis Boone) writes:

    Interesting. What happened to it? I"m sure your campus no longer
    operates usenet?

    We shut it down before 1998, along with the public gopher service
    we ran. Pretty sure I had the code on a tape, but I think I've misplace
    the tape. :(

    De

    Looks like you still work at the uni.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)