This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Nightmare = require ("nightmare"); | |
| const vo = require("vo"); | |
| function scrape (url: string, dataScraper: Function, urlScraper: Function, | |
| injectJQuery: boolean = true, validate: Function = null) | |
| { | |
| var item : any = null, urls: any = null; | |
| // do not show window, do not load images (reduce time to ready()) | |
| var nightmare = Nightmare({show: false, pollInterval: 800, webPreferences: {images: false}}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Untitled" | |
| output: html_document | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```{r include=F} | |
| options(width=120) | |
| set.seed(3874) | |
| options(error=function() {save.image(file="error.rmd.RData")}) | |
| ``` |
NewerOlder