LoginSignup
0
0

More than 5 years have passed since last update.

mixed-content-crawler というものがあったのでちょっとテスト

Posted at

mixed-content-crawler

demo\.gif \(796×425\)

mixed-content-crawler - npm
https://www.npmjs.com/package/mixed-content-crawler

test

const fs = require("fs");
const urls = fs.readFileSync('list-of-urls.txt').toString().split("\n");

const mixedContentCrawler = require('mixed-content-crawler');
urls.forEach(function (url) {
  (async () => {
    const results = await mixedContentCrawler(url, {
      launch: {
        ignoreHTTPSErrors: true
      }
    }
    );
    results.forEach((mixedRequests, page) => {
      console.log(page);
      for (let r of mixedRequests) {
        console.log('->', r);
      }
    });
  })();
});

随分気楽に使えて良いな :smiley_cat:

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