GithubHelp home page GithubHelp logo

rajatagrawal / databasepulling Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.19 MB

This is a python code that pulls out data from a list of urls and creates a search index for searching for a particular word in a review in O(1) time.

Python 100.00%

databasepulling's Introduction

DatabasePulling

This is a python code that pulls out data from a list of urls and creates a search index for searching for a particular word in a review in O(1) time.

There are 2000 urls in a text file, reviewUrls.txt. Each url has some reviews. The seach indexing function creates a search index for the reviews in the urls so that all the reviews having a particular search word can be pulled in O(1) time.

There are four main files in the code.

  1. singleThreading_binarySearchTree.py - Does the processing using a single thread and binary trees.
  2. singleThreading_hashing.py - Does the search indexing using a single thread and a hash table.
  3. threading_binarySearchTree.py - Does the processing using multiple threads and a binary search tree.
  4. threading_hashTable.py - Does the processing using multiple threads and a hash table.

The order of time performance is 4>3>2>1 in the increasing order of time taken to index the reviews in the url.

The other files in the code are,

  1. reviewUrls.txt : A file containing the urls from where to pull the data
  2. binaryTree.py : A self implemented implementation for a binary tree for functionalities needed by me in the code
  3. stopWords.txt : A list of common words that need to be ignored while creating a search index.

databasepulling's People

Contributors

rajatagrawal avatar

Watchers

James Cloos avatar  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.