remove user agent from config

This commit is contained in:
Christian Kellner
2020-02-28 14:03:11 +01:00
parent 3c07c70a2d
commit c91471a0b2
3 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
{
"interval": 1,
"userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36",
"jobs": {
"yourSearchJob": {
"notification": {

View File

@@ -1,6 +1,5 @@
{
"interval": 1,
"userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36",
"jobs": {
"test1": {
"notification": {

View File

@@ -1,5 +1,4 @@
const makeDriver = require('request-x-ray');
const config = require('../../conf/config.json');
const Xray = require('x-ray');
class Scraper {
@@ -12,7 +11,8 @@ class Scraper {
const driver = makeDriver({
headers: {
'User-Agent': config.userAgent
'User-Agent':
'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36'
}
});