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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Sep 10 17:21:02 2016 | |
@author: venkatesh | |
""" | |
import requests | |
import os | |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Sep 10 17:17:21 2016 | |
@author: venkatesh | |
""" | |
import requests | |
from bs4 import BeautifulSoup |
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 csv | |
import numpy as np | |
from nltk.sentiment.vader import SentimentIntensityAnalyzer | |
from nltk import tokenize | |
name = [] | |
review = [] | |
sid = SentimentIntensityAnalyzer() |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Aug 12 16:04:55 2016 | |
@author: venkatesh | |
""" | |
import requests | |
import pandas as pd | |
from bs4 import BeautifulSoup |
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 __future__ import print_function | |
import requests | |
import pandas as pd | |
from bs4 import BeautifulSoup | |
url = "https://www.yelp.com/search?find_desc=Restaurants&find_near=times-square-new-york-2" | |
r = requests.get(url) | |
soup = BeautifulSoup(r.content) | |
#print(soup.prettify()) | |
names = [] |