mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
ill need to rewrite the google scraper, but hey atleast we got imagesearch working woooo
This commit is contained in:
parent
6f896221f0
commit
b57b2d7118
7 changed files with 407 additions and 1490 deletions
|
@ -11,6 +11,7 @@ https://4get.ca
|
|||
1. Web
|
||||
- DuckDuckGo
|
||||
- Brave
|
||||
- Google
|
||||
- Mojeek
|
||||
- Marginalia
|
||||
- wiby
|
||||
|
@ -18,6 +19,7 @@ https://4get.ca
|
|||
2. Images
|
||||
- DuckDuckGo
|
||||
- Yandex
|
||||
- Google
|
||||
- Brave
|
||||
|
||||
3. Videos
|
||||
|
@ -25,13 +27,15 @@ https://4get.ca
|
|||
- Facebook videos
|
||||
- DuckDuckgo
|
||||
- Brave
|
||||
- Google
|
||||
|
||||
4. News
|
||||
- DuckDuckGo
|
||||
- Brave
|
||||
- Google
|
||||
- Mojeek
|
||||
|
||||
More scrapers are coming soon. I currently want to add Google, Hackernews, Qwant and find a way to scrape Yandex web without those fucking captchas. A shopping, music and files tab is also in my todo list.
|
||||
More scrapers are coming soon. I currently want to add Hackernews, Qwant and find a way to scrape Yandex web without those fucking captchas. A shopping, music and files tab is also in my todo list.
|
||||
|
||||
# Setup
|
||||
This section is still to-do. You will need to figure shit out for some of the apache2 stuff. Everything else should be OK.
|
||||
|
|
|
@ -88,8 +88,12 @@ $left =
|
|||
<td>Address</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4get</td>
|
||||
<td><a href="https://4get.ca">4get.ca</a><a href="http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion/">(tor)</a></td>
|
||||
<td>lolcat\'s instance (master)</td>
|
||||
<td><a href="https://4get.ca">4get.ca</a><a href="http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion">(tor)</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>zzls\'s instance</td>
|
||||
<td><a href="https://4get.zzls.xyz/">4get.zzls.xyz</a><a href="http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion">(tor)</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -877,8 +877,8 @@ class frontend{
|
|||
"display" => "Scraper",
|
||||
"option" => [
|
||||
"ddg" => "DuckDuckGo",
|
||||
"brave" => "Brave",
|
||||
//"google" => "Google",
|
||||
//"brave" => "Brave",
|
||||
"google" => "Google",
|
||||
"mojeek" => "Mojeek",
|
||||
"marginalia" => "Marginalia",
|
||||
"wiby" => "wiby"
|
||||
|
@ -892,8 +892,8 @@ class frontend{
|
|||
"option" => [
|
||||
"ddg" => "DuckDuckGo",
|
||||
"yandex" => "Yandex",
|
||||
"brave" => "Brave"//,
|
||||
//"google" => "Google"
|
||||
"brave" => "Brave",
|
||||
"google" => "Google"
|
||||
]
|
||||
];
|
||||
break;
|
||||
|
|
10
proxy.php
10
proxy.php
|
@ -32,11 +32,11 @@ try{
|
|||
|
||||
switch($_GET["s"]){
|
||||
|
||||
case "portrait": $req = "&w=50&h=90&p=0&qlt=99"; break;
|
||||
case "landscape": $req = "&w=160&h=90&p=0&qlt=99"; break;
|
||||
case "square": $req = "&w=90&h=90&p=0&qlt=99"; break;
|
||||
case "thumb": $req = "&w=236&h=180&p=0&qlt=99"; break;
|
||||
case "cover": $req = "&w=207&h=270&p=0&qlt=99"; break;
|
||||
case "portrait": $req = "&w=50&h=90&p=0&qlt=90"; break;
|
||||
case "landscape": $req = "&w=160&h=90&p=0&qlt=90"; break;
|
||||
case "square": $req = "&w=90&h=90&p=0&qlt=90"; break;
|
||||
case "thumb": $req = "&w=236&h=180&p=0&qlt=90"; break;
|
||||
case "cover": $req = "&w=207&h=270&p=0&qlt=90"; break;
|
||||
}
|
||||
|
||||
$proxy->stream_linear_image($_GET["i"] . $req, "https://bing.net");
|
||||
|
|
|
@ -1982,8 +1982,6 @@ class brave{
|
|||
as $result
|
||||
){
|
||||
|
||||
print_r($result);
|
||||
|
||||
$out["image"][] = [
|
||||
"title" => $result["title"],
|
||||
"source" => [
|
||||
|
|
1855
scraper/google.php
1855
scraper/google.php
File diff suppressed because it is too large
Load diff
|
@ -103,11 +103,11 @@ $settings = [
|
|||
[
|
||||
"value" => "brave",
|
||||
"text" => "Brave"
|
||||
]/*,
|
||||
],
|
||||
[
|
||||
"value" => "google",
|
||||
"text" => "Google"
|
||||
]*/
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
|
@ -147,8 +147,8 @@ $settings = [
|
|||
[
|
||||
"value" => "brave",
|
||||
"text" => "Brave"
|
||||
],
|
||||
/*[
|
||||
],/*
|
||||
[
|
||||
"value" => "google",
|
||||
"text" => "Google"
|
||||
],*/
|
||||
|
|
Loading…
Reference in a new issue