mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c0e9e56c6 | ||
|
|
f5d56a6bda | ||
|
|
324b14da50 |
@@ -16,7 +16,7 @@ function applyBlacklist(o) {
|
|||||||
const config = {
|
const config = {
|
||||||
url: null,
|
url: null,
|
||||||
crawlContainer:
|
crawlContainer:
|
||||||
'div[data-testid="serp-card-testid"]:not(div[data-testid="serp-enlargementlist-testid"] div[data-testid="serp-card-testid"])',
|
'div[data-testid="serp-core-scrollablelistview-testid"]:not(div[data-testid="serp-enlargementlist-testid"] div[data-testid="serp-card-testid"])',
|
||||||
sortByDateParam: 'order=DateDesc',
|
sortByDateParam: 'order=DateDesc',
|
||||||
crawlFields: {
|
crawlFields: {
|
||||||
id: 'a@id',
|
id: 'a@id',
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import Mixpanel from 'mixpanel';
|
|||||||
import { getJobs } from '../storage/jobStorage.js';
|
import { getJobs } from '../storage/jobStorage.js';
|
||||||
import { getUniqueId } from './uniqueId.js';
|
import { getUniqueId } from './uniqueId.js';
|
||||||
import { config, inDevMode } from '../../utils.js';
|
import { config, inDevMode } from '../../utils.js';
|
||||||
|
import os from 'os';
|
||||||
|
|
||||||
const mixpanelTracker = Mixpanel.init('718670ef1c58c0208256c1e408a3d75e');
|
const mixpanelTracker = Mixpanel.init('718670ef1c58c0208256c1e408a3d75e');
|
||||||
|
|
||||||
@@ -55,7 +56,8 @@ export function trackDemoAccessed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enrichTrackingObject(trackingObject) {
|
function enrichTrackingObject(trackingObject) {
|
||||||
const platform = process.platform;
|
const operating_system = os.platform();
|
||||||
|
const os_version = os.release();
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
const language = process.env.LANG || 'en';
|
const language = process.env.LANG || 'en';
|
||||||
const nodeVersion = process.version || 'N/A';
|
const nodeVersion = process.version || 'N/A';
|
||||||
@@ -63,7 +65,8 @@ function enrichTrackingObject(trackingObject) {
|
|||||||
return {
|
return {
|
||||||
...trackingObject,
|
...trackingObject,
|
||||||
isDemo: config.demoMode,
|
isDemo: config.demoMode,
|
||||||
platform,
|
operating_system,
|
||||||
|
os_version,
|
||||||
arch,
|
arch,
|
||||||
nodeVersion,
|
nodeVersion,
|
||||||
language,
|
language,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fredy",
|
"name": "fredy",
|
||||||
"version": "10.4.1",
|
"version": "10.4.4",
|
||||||
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node prod.js",
|
"start": "node prod.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user