faster scraping, added ticker search engines

This commit is contained in:
Nikolai Tschacher
2019-01-27 01:27:52 +01:00
parent b0e588f916
commit e78d7145b5
13 changed files with 244 additions and 63 deletions

View File

@@ -5,8 +5,7 @@ module.exports = {
scrape_baidu_pup: scrape_baidu_pup,
};
async function scrape_baidu_pup(browser, event, context) {
const page = await browser.newPage();
async function scrape_baidu_pup(page, event, context) {
await page.goto('https://www.baidu.com/');
try {