Skip to content

antonromanov1/qsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QSearch

QSearch is a search engine which consists of a multithreaded web crawler, a handler of the crawled data and a tool for searching.

Gumbo (a pure-C HTML5 parser) and gumbo-query

I have edited a gumbo C++ wrapper gumbo-query (https://github.com/lazytiger/gumbo-query).

Changes I made are below:

  1. Added function search_for_links (copied and modified from gumbo-parser/examples https://github.com/google/gumbo-parser)
  2. Added member function CDocument::get_links
  3. Edited destructor of CObject and member function CObject::release
  4. Added member function CSelection::results
  5. Added member function CDocument::page_text

How to use it

You can build QSearch with:

make

run the crawler with:

./main crawl

prepare the system for searching with:

./main handling

and at last search your query with:

./main search what the weather for tomorrow

The extension for Python

You can build my extension in py_extension/ and then use resulting binary for calling in your user interface

Releases

No releases published

Packages

No packages published