• newb .JS

    From Fang-Castro@VERT/FTPBBS to All on Wed Oct 14 16:36:04 2020
    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 Wed Oct 14 23:08:19 2020
    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.9øF, 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 Sun Oct 18 16:37:39 2020
    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