get rid of the captcha stuff, put proxies in data
All checks were successful
docker / docker (push) Successful in 11s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-11 16:28:11 +03:00
parent 54b3588c3a
commit 5aff5e9277
9 changed files with 51 additions and 55 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
/compose.yml
/docker-compose.yml
/banners
/captcha
/banner
/favicon.ico
/config.php

View File

@ -6,8 +6,8 @@ services:
- 80:8080
volumes:
- ./config.php:/srv/4get/data/config.php:ro
- ./banners:/srv/4get/banner:ro
- ./captcha:/srv/4get/data/captcha:ro
- ./favicon.ico:/srv/4get/favicon.ico:ro
- ./banner:/srv/4get/banner:ro
- type: tmpfs
target: /tmp/icons
cap_drop:

7
src/.gitignore vendored
View File

@ -21,9 +21,8 @@ scraper/soundcloud.json
scraper/mp3-pm.html
scraper/curlie.html
icons/*
banner/*
!banner/*default*
data/*
data/captcha
data/config.php
!banner/*default*
!data/*.def.*

View File

@ -37,8 +37,8 @@ class config{
// Proxy pool assignments for each scraper
// false = Use server's raw IP
// string = will load a proxy list from data/proxies
// Eg. "onion" will load data/proxies/onion.txt
// string = will load a proxy list from data directory
// Eg. "tor" will load data/tor.txt
const PROXY_DDG = false; // duckduckgo
const PROXY_BRAVE = false;
const PROXY_FB = false; // facebook

Binary file not shown.

View File

@ -1,3 +0,0 @@
*
!.gitignore
!onion.txt

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

View File

@ -21,7 +21,7 @@ class backend{
// indent
$proxy_index_raw = apcu_inc("p." . $this->scraper);
$proxylist = file_get_contents("data/proxies/" . $pool . ".txt");
$proxylist = file_get_contents("data/" . $pool . ".txt");
$proxylist = explode("\n", $proxylist);
// ignore empty or commented lines