mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
remove user agent from config
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user