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
import twitter | |
api = twitter.Api(consumer_key='FILL-ME-IN', | |
consumer_secret='FILL-ME-IN', | |
access_token_key='FILL-ME-IN', | |
access_token_secret='FILL-ME-IN') | |
print(api.VerifyCredentials()) | |
search = api.GetSearch("happy") # Replace happy with your search |
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
# Done using Twitter API search hourly implementation. | |
import datetime | |
from google.cloud import firestore | |
from TwitterAPI import TwitterAPI | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import firestore | |
from time import sleep | |
#Global variables |
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
# Done using Twitter API search hourly implementation. | |
import RPi.GPIO as GPIO | |
import datetime,requests | |
from google.cloud import firestore | |
from TwitterAPI import TwitterAPI | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import firestore | |
from time import sleep |
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
sudo -H python3.6 - m pip install virtualenv | |
sudo -H python3.6 -m virtualenv -p /usr/bin/python3.6 venv |
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
# SPRING PROJECTS DEPENDENCY LIST (MAVEN) XML BASED CONFIGURATION | |
## Table of Contents | |
- SPRING CONTEXT | |
- SPRING CORE | |
- SPRING WEB | |
- SPRING WEBMVC | |
- SPRING JDBC | |
- JAVAX SERVLETS |
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
#Final code for Data extraction using tweepy and firestore | |
#Text preprocessing included | |
#sentiment analyser embedded | |
#immune to connectionerror | |
import tweepy | |
import csv | |
import sys,re,os | |
import datetime,requests | |
from requests.exceptions import ConnectionError |
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
import unicodedata | |
from unidecode import unidecode | |
def deEmojify(inputString): | |
returnString = "" | |
for character in inputString: | |
try: | |
character.encode("ascii") |
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
from google.cloud import firestore | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import firestore | |
import json | |
import datetime | |
import os,csv,re,emoji | |
#filekey =input("Enter key file name: ") | |
companyname =input("Enter company name: ") |
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
import { Component, ViewChild, HostListener } from '@angular/core'; | |
import { MatSidenav } from '@angular/material/sidenav'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent { |
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
 | |
 | |
 | |
 | |
 | |
 | |
 | |
 |
OlderNewer