Skip to content

Example in README crashes #1022

Answered by Jym77
jrpool asked this question in Questions
Jan 7, 2022 · 5 comments · 6 replies
Discussion options

You must be logged in to vote

Can you try the full scraping example (first run yarn build at top level of the examples repo, then run yarn test in the custom-testing/scraping directory).

It is essentially the same script as the one in the README.


When trying this version of your script:

const { Audit } = require("@siteimprove/alfa-act");
const { Scraper } = require("@siteimprove/alfa-scraper");
const alfaRules = require("@siteimprove/alfa-rules");
Scraper.with(async (scraper) => {
  for (const input of await scraper.scrape("https://example.com/")) {
    const audit = Audit.of(input, alfaRules.default);

    const outcomes = await audit.evaluate();
    const result = [...outcomes];

    console.log(`Found ${result.length

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@jrpool
Comment options

@jrpool
Comment options

@Jym77
Comment options

@Jym77
Comment options

@jrpool
Comment options

Answer selected by Jym77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1021 on January 11, 2022 08:21.