Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get the Batch example to work #9

Open
markdorrill opened this issue Jun 17, 2019 · 0 comments
Open

Trying to get the Batch example to work #9

markdorrill opened this issue Jun 17, 2019 · 0 comments

Comments

@markdorrill
Copy link

I'm trying to get the example in htmlToJson.batch to work but dont understand what the getProlificHomepage() function should look like or return.

Currently I'm trying the following request. It returns html but not a promise that the batch chain can operate on.

var getProlificHomepage = htmlToJson.request('http://prolificinteractive.com', {
        'text': function ($doc) {
            return $doc.text();
        }
    }, function (err, result) {
        console.log(result);
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant