Giter Club home page Giter Club logo

acc-web-search-engine's Introduction

Web-Search-Engine

Web Search Engine developed in Java, while web crawler is developed in Python 3.
A simple search engine which is based on the frequency of the key words in the text files.

Project Components:
--> Imported Packages : Text Processing, Sorting
--> Python Web crawler: web-crawler.py
--> Text Files: websites.txt, stop-words.txt
--> Folders: hashmap_data, urls
--> Java File: URLtoText.java - Code to parse URLs to text files.
--> Jave File: SearchEngine.java - Driver Code along with functions.

Concepts Used:

  1. Sorting (Merge Sort)
  2. Ternary Search Trie
  3. Hash Maps
  4. Text Processing (JSoup, String Functions)
  5. Memory Management (Caching)

Flow of Execution of the Search Engine:

  1. Use of Python web crawler to crawl the web and recursively retreive around 1500 URLs.
  2. Each URL is parsed to a text file using JSoup.
  3. Stop words are removed from the Search String given by the user.
  4. String is converted to token using Java String Tokenizer.
  5. All URLs are indexed into a Hash Map.
  6. TST is generated for each text file and frequency of keywords are extracted.
  7. To implement page ranking, frequency of these words along with the URL index are stored in the Hash Map.
  8. The page ranking Hash Map is sorted in decreasing order of frequency words.
  9. Page ranking Hash Map is stored in memory to implement cache and drastically improve search time.

Screenshots:

--> Driver Java file

--> Cache file generated

acc-web-search-engine's People

Contributors

gagannagpal131 avatar hjk1995 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

chanpuraraj

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.