Giter Club home page Giter Club logo

advise's Introduction

Advise v1.0

Purpose

Advise allows you to display clusters of facebook pages based on their 'likes' and 'talking_about_count'. The facebook pages are grouped together using k-means and the Euclidian distance.

Requirements

  1. Python2.7: http://www.python.org/getit/releases/2.7/
  2. Unless you fork the repository on GitHub you will need Highcharts: http://www.highcharts.com/

Running Advise

Once you fork the repo, here is a way of running Advise:

scrapper = Scrapper()
scrapper.query(QUERY='university', OBJECT_TYPE='page')
university_pages = scrapper.get_pages(QUERY='university', OBJECT_TYPE='page')
scrapper.dump("query_data")
store_data(university_pages, "university_pages")
clusters = Cluster.kmeans(data=university_pages)
visualizer = Visualizer(data=university_pages, clusters=clusters)
visualizer.visualize()

If your query is large gathering all this data from facebook might take a while. This is why we are storing the data using dump()and store_data() , just in case we might want to run this program multiple times or you might want to reuse the data.

Here is another way of running Advise in case you already have the data stored in a bunch of files:

scrapper = Scrapper()
scrapper.load("query_data")
load_data(university_pages, "university_pages")
clusters = Cluster.kmeans(data=university_pages)
visualizer = Visualizer(data=university_pages, clusters=clusters)
visualizer.visualize()

Example Output

  1. see: http://www.efekarakus.com/blog/advise.html

advise's People

Contributors

efekarakus avatar

Watchers

James Cloos avatar Musharaf Zia Lone avatar

Forkers

abhiruchi

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.