0
0

More than 3 years have passed since last update.

RSSの表示の仕方(express,node.js)

Posted at

express(express-generator)を使って東京メトロのリリースニュースを表示します

xmlモジュールのインストール

npm install --save xml2js

xmlを使っているサイトを見つける

今回は、
https://www.tokyometro.jp/news/rss/news.xml
このサイトを使います。

モジュールのロード

router内のjsファイル内で


var http = require('https');
var parseString = require('xml2js').parseString;

途中です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0