Skip to content

Instantly share code, notes, and snippets.

@s0g00d
s0g00d / gist:264ec9244230fc312666bc2f4fa4f102
Created May 13, 2020 15:45
Stock Headline Sentiment Analysis
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from os import path
from bs4 import BeautifulSoup as bs
import requests
import pandas as pd
from pandas import DataFrame
from urllib.request import Request, urlopen
import re # import Regular expression library
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from os import path
from bs4 import BeautifulSoup as Soup
import requests
DATA_DIR = 'C:/Users/xbsqu/Desktop/Python Learning/Projects/Premarket Stock Price'
#Connecting to G Sheet...