Git Product home page Git Product logo

yoursearch's Introduction

YourSearch

An Open Source search engine + web crawler. Can be used to cache specific websites or the entire web. This is part of a project for caching specific sites of the web on to a raspberry Pi and make information freely available in remote areas where internet access is difficult to provide.

This is a work in progress and at it's very initial stages, not fit for production use. For single websites however this search engine works very well.

search

Results

results

How it works?

The search engine has 2 components ; a crawler and the server. The crawler crawls the web and sends crawled page contents back to the server. The server stores these contents in a database. Whenever a user wants to search anything, the server performs a database search operation over the stored contents.

Issues/TODO

  • Indexing is slow.
  • Change database backend from MySQL to something fast; maybe Mongodb.
  • Secure communication between server and crawler

Requirements

Server : PHP7 + MySQL.

Client : Runs everywhere

Getting Started

  • Build the main.go file in the crawler folder: go build main.go

  • Setup a LEMP server

  • Setup the webserver online, by copying contents from the webserver folder.

  • Import db.sql into your MySQL database.

  • Go to application/config/database.php to change database credentials to your db server.

  • Test to see if its working by visitng your-server-ip/index.php/Api

  • Change links in the config.json file to point to your server, change the starting url too.

  • Run the crawler : ./main ./ . The first argument to the crawler is the path to the directory which contains the config.json file. (PS: You can run multiple crawlers at once)

  • Visit your-server-ip to view the search page and see progress of the number of pages indexed.

yoursearch's People

Contributors

abdullah1213 avatar

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.