Giter Site home page Giter Site logo

twistdroach / open-source-search-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gigablast/open-source-search-engine

0.0 0.0 0.0 224.53 MB

A distributed open source search engine and spider/crawler written in C/C++ for Linux on Intel/AMD. See the README.md file at the very bottom of this page for instructions.

License: Apache License 2.0

Shell 0.01% C++ 96.72% Python 0.54% Perl 0.03% C 1.22% PHP 0.03% Makefile 0.01% HTML 1.44% Dockerfile 0.01% CMake 0.01%

open-source-search-engine's Introduction

open-source-search-engine

An open source web search engine and spider/crawler. This was once the codebase for a search engine called Gigablast, but the site is no longer operational. This is a fork of the original codebase located at https://github.com/gigablast/open-source-search-engine

Quick Start

To experiment, you can quickly launch via docker by running:

docker run -p 8000:8000 -it --rm moldybits/open-source-search-engine

If you wish to preserve data between runs, you can:

docker run -p 8000:8000 -it --rm -v $(pwd)/data:/var/gigablast/data0 moldybits/open-source-search-engine

Major changes in this fork

  • cleanup! - Moved sources that are actually used into src dir. Everything else has been stuffed in the junkdrawer dir.
  • More cleanup - formatting, removing TONS of commented code, fixing some segfaults. This is ongoing...
  • I have replaced the original Makefile with CMake. This now installs the correct files required so you can execute ./gb in the build directory and run a test server there without it borking your source dir.
  • Stubbed out some testing functionality for building tests if this ever gets cleaned up enough to start making "real" changes.

Building

This does not build on ARM and does not work correctly on modern versions of MacOS, though it looks like there once was support at one point in time.

Install Catch2

git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install

Debian or Ubuntu

sudo apt-get install make g++ libssl-dev libz-dev cmake

RedHat or AlmaLinux

Last tried with AlmaLinux 9

sudo yum install gcc-c++ openssl-devel libz-devel cmake

Build

cd open-source-search-engine
cmake -Bbuild
cmake --build build/

Issues & Pull Requests

Should be filed at https://github.com/twistdroach/open-source-search-engine

Testing

Tests can be put in the tests directory. I have written a few simple examples just to make sure it (mostly) works.

Documentation

There are various docs located in the html directory. The FAQ & developer.html are particularly interesting.

open-source-search-engine's People

Contributors

gigablast avatar vonbetz avatar twistdroach avatar onlyjob avatar isj-privacore avatar compunixaustralia avatar miketung avatar revbooyah avatar emmanuelcharon avatar bxmvva4v avatar alc-privacore avatar coconutpilot avatar shijuraj avatar yeeler avatar appchecker avatar

open-source-search-engine's Issues

Custom Filter Rules not counted after Restart

When you restart gb with custom filters, then the number of rules m_numRegExs is not set. So the Spider will not evaluate the "url filters" and stop spidering. I added some lines in Collectiondb.cpp to fix this. Where can I post the code?

multi-core and filtering guidance

I see you have got multi-core working. Any tips?

I have it working but at the expense of security though.

Any way to multi-core spider on a single db?

Have you played with any form of filtering? Seeing lots of spammy websites getting sucked in.

manually injected url gets deleted

When I inject an url that is already in the spiderdb and not in the sitelist the page gets downloaded successful and then deleted few seconds later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.