• newb .JS

    From Fang-Castro@VERT/FTPBBS to All on Wednesday, October 14, 2020 16:36:04
    What level of Javascript/programming experience would you say this is...

    I would like to get to the point of using .JS to make SynchronetBBS mods. One of the things I'd like to do is send info to websites and get the text results.

    i.e. JS program sends text to google.com and results are gathered to display in an ascii/ANSI screen. (this is just the simplest example i could think of)

    I know nothing about programming. I have modified a few old SBBS mods to get them working since they were over 10 years old and it's very easy to change how they look. If/then statements are pretty easy to handle so far.

    Would you think this is something I could achieve soon or is this just wishful thinking?

    ---
    Synchronet Flee the Planet BBS [flee.fsxnet.nz:2323]
  • From Digital Man@VERT to Fang-Castro on Wednesday, October 14, 2020 23:08:19
    Re: newb .JS
    By: Fang-Castro to All on Wed Oct 14 2020 04:36 pm

    What level of Javascript/programming experience would you say this is...

    I would like to get to the point of using .JS to make SynchronetBBS mods. One of the things I'd like to do is send info to websites and get the text results.

    i.e. JS program sends text to google.com and results are gathered to display in an ascii/ANSI screen. (this is just the simplest example i could think of)

    Not too difficult, especially since we have some handy JS libraries available for just this kind of thing (e.g. see load/http.js and the scripts that use it, e.g. exec/wget.js).

    digital man

    Rush quote #42:
    Media messiahs preying on my fears, pop culture prophets playing in my ears Norco, CA WX: 72.9F, 55.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Tracker1@VERT/TRN to Fang-Castro on Sunday, October 18, 2020 16:37:39
    On 10/14/2020 4:36 PM, Fang-Castro wrote:
    What level of Javascript/programming experience would you say this is...

    I would like to get to the point of using .JS to make SynchronetBBS mods. One of the things I'd like to do is send info to websites and get the text results.

    i.e. JS program sends text to google.com and results are gathered to display in an ascii/ANSI screen. (this is just the simplest example i could think of)

    I know nothing about programming. I have modified a few old SBBS mods to get them working since they were over 10 years old and it's very easy to change how they look. If/then statements are pretty easy to handle so far.

    Would you think this is something I could achieve soon or is this just wishful thinking?

    If you're able to modify existing examples, it wouldn't likely take too
    much effort. You'd need to grab the results of your web request and
    then probabl use regular expressions for matching patterns in the
    resulting text then further matching to get the information you are
    looking for. It's worth noting, that what/where you are requestion can
    change their structure/format at any time.

    Alternatively, If you wanted something closer to an in-browser like experience, you could use Node.js with node-fetch and cheerio
    (jQuery-like interface over html/xml result) to translate to JSON and
    then have synchronet load/format that JSON result.

    --
    Michael J. Ryan
    tracker1 +o Roughneck BBS

    ---
    Synchronet Roughneck BBS - coming back 2/2/20