Coder Social home page Coder Social logo

dangerblack / google-decision-support-system Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 5.0 163 KB

A python tools for making fast decision about world by watching the results number of page in google search

License: GNU General Public License v3.0

Python 100.00%

google-decision-support-system's Introduction

Google-Decision-Support-System

A python tools for making fast decision about world by watching the results number of page in google search

#instruction

In order to use this software you need to add at query.txt file the questions you are looking for.

I like girls with
-red hair
-black hair
-brown hair
-blond hair

The first phrase is the first part of the question and each row represented with a tick (-) is the end of the question.

The tool will ask google the number of results of each query.

It counts how many people has written that phrase in the web. The correlation is clear: more people wrote it, so it must be true. The approach is really stupid but we do not discuss the approach but the results, let's see if it will give you interesting results.

#results The program create a graph named as "I like girls with red hair.png" as in the example the union of first sentence and first option.

Image of the sample

google-decision-support-system's People

Contributors

alainrk avatar dangerblack avatar mattmart3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

google-decision-support-system's Issues

On python 2.7 received a 'unicode' error line 44

When i run the script with python 2.7 I got this error from line 44

TypeError: descriptor 'replace' requires a 'str' object but received a 'unicode'

The solution is to change the encoding explicitly

	text=res.text.encode('utf-8')

	#res.encoding='utf-8'
	#text=res.text
	idx=text.find('<div id="resultStats">')+len('<div id="resultStats">')

Temporary fix, but need a better and more elegant solution!

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.