Giter Site home page Giter Site logo

wapa's Introduction

wapa

Webpage Analysis with Apriori Algo

The purpose of wapa, was to be able to query any information we want, retrieve it, parse it, then try to make sense of it all with the Apriori Algorithm. The Apriori Algorithm is an influential algorithm for mining frequent itemsets for boolean association rules.

About

What wapa does is, that you enter a search, with that search you crawl google and retrieve the latest 10 articles/webpages written about that subject (Note you can change this number to whatever you want). Wapa grabs all the important data, parses it, makes it look nice, and then splits every word. Then we place each Webpage's information in it's own "dataset", taking into regard the top 100 words used on each webpage (can be changed, or removed) disregarding Stop Words. In this case we have 10 datasets.

Now with all this, we now us the Apriori Algorithm to try to make sense of it all

MinSupport is defaulted to 0.3. Can change it in main:

def main():
	keyword = raw_input("Please enter what you would like to search: ")
	articles_info = getArticles(keyword)
	topWords = parser(articles_info)
	L = apriori(topWords)
	# change it here
	L, support_data = apriori(topWords, minsupport=0.3)
	print L

Usage

To Run :

python wapa.py

License

MIT-License


wapa's People

Contributors

mtamer avatar

Stargazers

Vlad Trukhin avatar  avatar Don Ebben avatar  avatar Michael Herman avatar

Watchers

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