aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-10-22 20:15:00 -0400
committerlolcat <will@lolcat.ca>2024-10-22 20:15:00 -0400
commitd8a729796e9a7abf3eb521fd368899a402ae3310 (patch)
tree554b0ce1631729b721ae4ebd27236e6a51f34b3c
parent2bbe5a29a9ce08ccdd305fffad47c0df29bef59b (diff)
fix crash on google cse, added settings
-rw-r--r--data/config.php6
-rw-r--r--settings.php8
2 files changed, 13 insertions, 1 deletions
diff --git a/data/config.php b/data/config.php
index 5c704ae..efae706 100644
--- a/data/config.php
+++ b/data/config.php
@@ -119,7 +119,7 @@ class config{
// Default user agent to use for scraper requests. Sometimes ignored to get specific webpages
// Changing this might break things.
- const USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0";
+ const USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0";
// Proxy pool assignments for each scraper
// false = Use server's raw IP
@@ -129,6 +129,7 @@ class config{
const PROXY_BRAVE = false;
const PROXY_FB = false; // facebook
const PROXY_GOOGLE = false;
+ const PROXY_GOOGLE_CSE = false;
const PROXY_STARTPAGE = false;
const PROXY_QWANT = false;
const PROXY_GHOSTERY = false;
@@ -157,6 +158,9 @@ class config{
// Scraper-specific parameters
//
+ // GOOGLE CSE
+ const GOOGLE_CX_ENDPOINT = "d4e68b99b876541f0";
+
// MARGINALIA
// Use "null" to default out to HTML scraping OR specify a string to
// use the API (Eg: "public"). API has less filters.
diff --git a/settings.php b/settings.php
index 8030035..6bd6c0f 100644
--- a/settings.php
+++ b/settings.php
@@ -134,6 +134,10 @@ $settings = [
"text" => "Google"
],
[
+ "value" => "google_cse",
+ "text" => "Google CSE"
+ ],
+ [
"value" => "startpage",
"text" => "Startpage"
],
@@ -204,6 +208,10 @@ $settings = [
"text" => "Google"
],
[
+ "value" => "google_cse",
+ "text" => "Google CSE"
+ ],
+ [
"value" => "startpage",
"text" => "Startpage"
],
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage