mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-02-16 08:29:15 +01:00
test: working test for html_output
This commit is contained in:
parent
394b567db6
commit
b685fb4def
@ -70,9 +70,11 @@ describe('Config', function(){
|
||||
|
||||
const scrape_job = {
|
||||
search_engine: 'google',
|
||||
/* TODO refactor start_url
|
||||
google_settings: {
|
||||
start_url: 'http://localhost:' + httpPort
|
||||
},
|
||||
*/
|
||||
keywords: ['test keyword'],
|
||||
};
|
||||
|
||||
@ -82,6 +84,9 @@ describe('Config', function(){
|
||||
html_output: true,
|
||||
//clean_html_output: false,
|
||||
//clean_data_images: false,
|
||||
// TODO refactor start_url so we can use-it instead of depending of the proxy for this test
|
||||
proxies: ['http://localhost:' + proxyPort],
|
||||
use_proxies_only: true,
|
||||
});
|
||||
await scraper.start();
|
||||
const { results } = await scraper.scrape(scrape_job);
|
||||
|
Loading…
Reference in New Issue
Block a user