Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import csv | |
import codecs, cStringIO | |
from argparse import ArgumentParser | |
from monkeylearn import MonkeyLearn | |
class UTF8Recoder: | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gets the first 10 results of the query without using google API | |
# And then prints them as a JSON | |
# Usage google.rb [your search] | |
require "net/https" | |
require "uri" | |
require "nokogiri" | |
require "json" | |
q = URI::encode(ARGV[0]) |