• web_feed_importer.js

    From Bill McGarrity@VERT/TEQUILAM to echicken on Mon Sep 5 14:02:00 2016
    Hiya echicken....

    I seem to be having an issue with importing one feed from: http://cdn.nhl.com/rss/news.xml

    All my other rss pages download properly. I was wondering if you can take a look at that page and see if they've done something different there or are refusing connection. I can open the url just fine in Chrome so it's got me stumped.

    Thanks!!


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net:81
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ
  • From echicken@VERT/ECBBS to Bill McGarrity on Mon Sep 5 16:42:26 2016
    I seem to be having an issue with importing one feed from: http://cdn.nhl.com/rss/news.xml

    It works fine for me here. If you run the script from a shell / command prompt ('jsexec web_feed_importer.js') do you see any error messages?

    Are you adding this feed for the first time, or did you just recently notice there hadn't been any new items in a while? It looks to me like they haven't posted anything there since mid-July.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Bill McGarrity@VERT/TEQUILAM to echicken on Thu Sep 8 00:45:00 2016
    echicken wrote to Bill McGarrity <=-

    I seem to be having an issue with importing one feed from: http://cdn.nhl.com/rss/news.xml

    It works fine for me here. If you run the script from a shell /
    command prompt ('jsexec web_feed_importer.js') do you see any error messages?

    Are you adding this feed for the first time, or did you just recently notice there hadn't been any new items in a while? It looks to me like they haven't posted anything there since mid-July.

    web_feed_importer.js works correctly for all the other rss feeds I have listed in my modops.ini file except for the link above.

    I created a new modopts.ini file listing only:

    2nhl = http://cdn.nhl.com/rss/news.xml

    This is what I get...

    C:\sbbs\exec>jsexec web_feed_importer.js

    JSexec v3.17a-Win32 (rev 1.183) - Execute Synchronet JavaScript Module
    Compiled Sep 5 2016 05:02:42 with MSC 1800

    Loading configuration files from C:\SBBS\CTRL
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes
    JavaScript: Initializing context (stack: 16384 bytes)

    Reading script from C:\sbbs\exec\web_feed_importer.js C:\sbbs\exec\web_feed_importer.js compiled in 0.00 seconds C:\sbbs\exec\web_feed_importer.js executed in 0.36 seconds

    It's like it never sees either the sub or it's not reading the page correctly.



    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net:81
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ
  • From echicken@VERT/ECBBS to Bill McGarrity on Thu Sep 8 10:42:53 2016
    I created a new modopts.ini file listing only:
    2nhl = http://cdn.nhl.com/rss/news.xml

    Is this entry in a '[feeds]' section of your new 'modopts.ini' file?

    Reading script from C:\sbbs\exec\web_feed_importer.js C:\sbbs\exec\web_feed_importer.js compiled in 0.00 seconds C:\sbbs\exec\web_feed_importer.js executed in 0.36 seconds

    It's like it never sees either the sub or it's not reading the page correctly.

    There's no error message in there, so it's not clear that anything's actually going wrong. That's pretty much the output I would expect to see if the script doesn't find any new messages to import from the feed.

    Are you adding this feed to that sub for the first time, or was it already set up and you noticed that no new messages were coming in?

    Please try the following:

    - Create a new message area, with an internal code of 'TESTNHL'
    - Restart Synchronet or wait for the BBS to recycle
    - Add 'testnhl = http://cdn.nhl.com/rss/news.xml' to the '[feeds]' section of 'ctrl/modopts.ini'
    - Run 'web_feed_importer.js' via jsexec again

    On my end, the script takes .5 seconds to run and import all of the messages from that feed into a new message area. Subsequent executions (with no new messages to import) take anywhere from .2 to .35 seconds.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Bill McGarrity@VERT/TEQUILAM to echicken on Mon Jan 23 17:43:19 2017
    Hello echicken!

    Was getting something funky when I added a new sub. I ran jsexec web_feed_importer.js locally... and this is what I got...

    C:\sbbs\exec>jsexec web_feed_importer.js

    JSexec v3.17a-Win32 (rev 1.184) - Execute Synchronet JavaScript Module
    Compiled Dec 10 2016 05:02:52 with MSC 1800

    Loading configuration files from C:\SBBS\CTRL
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes
    JavaScript: Initializing context (stack: 16384 bytes)

    Reading script from C:\sbbs\exec\web_feed_importer.js C:\sbbs\exec\web_feed_importer.js compiled in 0.00 seconds
    Unknown scheme! 'undefined'
    SyntaxError: XML tag name mismatch (expected hr)
    SyntaxError: XML tag name mismatch (expected hr)


    A: what is Unknown Scheme! 'undefined'
    B; what's with the Syntax Error

    and

    C: NOt sure why it won't connect to this page: SYSTEMUP = http://rss.uptimerobot.com/u393104-a7daeb14e4919ab941ba59354bf80355

    SYSTEMUP I have in the Main Folder...

    Thanks in advance..

    Bill


    ... mote supports asymmetric ND mode

    ---
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ
  • From echicken@VERT/ECBBS to Bill McGarrity on Mon Jan 23 18:43:25 2017
    Re: web_feed_importer.js
    By: Bill McGarrity to echicken on Mon Jan 23 2017 17:43:19

    http://rss.uptimerobot.com/u393104-a7daeb14e4919ab941ba59354bf80355

    So, I just did a test with that feed, and it imported fine for me. No errors.

    Unknown scheme! 'undefined'
    SyntaxError: XML tag name mismatch (expected hr)
    SyntaxError: XML tag name mismatch (expected hr)

    It's possible that there was an error on the other side (at the feed provider, Uptime Robot). That 'expected hr' bit indicates that the XML parser encountered an <hr> tag, which I wouldn't expect to see unescaped/unencoded in an RSS or Atom feed. My guess is that the parser was looking at one of their error pages (404, 500, 503, etc.), which wouldn't work too well.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Bill McGarrity@VERT/TEQUILAM to echicken on Tue Jan 24 16:31:00 2017
    echicken wrote to Bill McGarrity <=-

    Re: web_feed_importer.js
    By: Bill McGarrity to echicken on Mon Jan 23 2017 17:43:19

    http://rss.uptimerobot.com/u393104-a7daeb14e4919ab941ba59354bf80355

    So, I just did a test with that feed, and it imported fine for me. No errors.

    Unknown scheme! 'undefined'
    SyntaxError: XML tag name mismatch (expected hr)
    SyntaxError: XML tag name mismatch (expected hr)

    It's possible that there was an error on the other side (at the feed provider, Uptime Robot). That 'expected hr' bit indicates that the XML parser encountered an <hr> tag, which I wouldn't expect to see unescaped/unencoded in an RSS or Atom feed. My guess is that the
    parser was looking at one of their error pages (404, 500, 503, etc.), which wouldn't work too well.

    if I type that address into a browser... I get this..

    <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
    <title>Uptime Robot - All Monitors</title> <link>http://www.uptimerobot.com/</link>
    <description>Sending the status of your websites via RSS.</description> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://rss.uptimerobot.com/u1-5b5168eb2ed3396e02b6b7d4459cf634/"/> <lastBuildDate>Tue, 17 Jan 2017 02:40:46 -0500</lastBuildDate>

    I did some mkore digging and found a bad link that was causing the problems. I removed them and poof... it worked.

    Thanks for help...


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net:81
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ
  • From Sneaky@VERT/CHOICE to All on Tue Nov 3 18:22:20 2020
    Re: web_feed_importer.js erroring out
    By: Kurisu to Digital Man on Mon Oct 19 2020 02:22 am

    Hi all

    I have setup web_feed_importer.js and the one that was there when I setup
    works fine + another one I added to the list.

    I have been searching for rss feed on the internet and I like
    to ask if you could list a few rss feed that I could use on my bbs
    just all topic and bbs stuff if any

    Thank you

    Ian S 1st Choice Core Nz

    ---
    þ Synchronet þ 1st Choice Core - 1stchoicecore.co.nz
  • From Bob Roberts@VERT/HOVAL to Sneaky on Tue Nov 3 11:20:35 2020
    Re: web_feed_importer.js
    By: Sneaky to All on Tue Nov 03 2020 06:22 pm

    I have been searching for rss feed on the internet and I like
    to ask if you could list a few rss feed that I could use on my bbs
    just all topic and bbs stuff if any

    Here's what I'm using. Still playing with it. I try to find RSS feeds that have full article text, but they are harder and harder to find, especially with the news sites.

    LOCAL-HEADLINES = http://rss.cnn.com/rss/edition.rss,http://feeds.bbci.co.uk/news/rss.xml
    LOCAL-POLITICS = https://rss.politico.com/politicopulse.xml
    LOCAL-TECHNEWS = https://www.techmeme.com/feed.xml?x=1,https://TechCrunch.com/feed/,http://feeds .arstechnica.com/arstechnica/index,https://www.theverge.com/rss/full.xml

    |01bobbobbobbob|09bob|03bob|11bob|03bob|09bob|01bobbobbob |01robrobrobrob|09rob|03rob|11rob|03rob|09rob|01robrobrob

    ---
    þ Synchronet þ Halls of Valhalla <> San Francisco <> hovalbbs.com
  • From echicken@VERT/ECBBS to Bob Roberts on Wed Nov 4 00:30:01 2020
    Re: web_feed_importer.js
    By: Bob Roberts to Sneaky on Tue Nov 03 2020 11:20:35

    Here's what I'm using. Still playing with it. I try to find RSS feeds that have full article text, but they are harder and harder to find, especially with the news sites.

    They generally want you to click through for the full story, so they can serve more ads and otherwise monetize your reading. RSS is still in use, but just isn't as good as it was 10+ years ago.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Sneaky@VERT/CHOICE3 to Bob Roberts on Thu Nov 5 08:35:00 2020
    Hi Bob Roberts

    to ask if you could list a few rss feed that I could use on my bbs
    just all topic and bbs stuff if any

    Here's what I'm using. Still playing with it. I try to find RSS feeds that have full article text, but they are harder and harder to find, especially with the news sites.

    yes they are hard to find, but well keep searching.

    LOCAL-HEADLINES = http://rss.cnn.com/rss/edition.rss,http://feeds.bbci.co.uk/news/rss.xml LOCAL-POLITICS = https://rss.politico.com/politicopulse.xml
    LOCAL-TECHNEWS = https://www.techmeme.com/feed.xml?x=1,https://TechCrunch.com/feed/,http: //feeds .arstechnica.com/arstechnica/index,https://www.theverge.com/rss/full.xml


    Thank you for there ones, I have a http://rss.cnn.com now and probably add more rss feed
    from there, with the one's above.

    Thank you for your reply

    Ian S 1st Choice Core Nz

    --- MultiMail/Win v0.52
    þ Synchronet þ 4th Choice Core/New Zealand