This file contains 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
from gensim.models.doc2vec import LabeledSentence | |
from os import listdir | |
from os.path import isfile, join | |
import gensim | |
import DocIterator as DocIt | |
import MySQLdb | |
docLabels = [] | |
data = [] |
This file contains 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
import tweepy | |
from tweepy import Stream | |
from tweepy.streaming import StreamListener | |
import sys | |
from newspaper import Article | |
from time import mktime | |
auth = tweepy.OAuthHandler("XXXXXXXXXXXX") | |
auth.set_access_token("XXXXXXXXXXXX") |
This file contains 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
import pymongo | |
from pymongo import MongoClient | |
import csv | |
import urllib2 | |
import sys | |
import os.path | |
from datetime import datetime, timedelta | |
QUANDL_API_KEY = "YOUR_API_KEY" |
This file contains 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
import pymongo | |
from pymongo import MongoClient | |
import urllib2 | |
import csv | |
# Are we using development or Production ? | |
# uri = "mongodb://USERNAME:PASSWORD@INSTANCE.documents.azure.com:10255/?ssl=true&replicaSet=globaldb" |
NewerOlder