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
#tripadvisor Scrappera | |
#importing libraries | |
from bs4 import BeautifulSoup | |
import urllib, csv, os, datetime, urllib.request, re, sys | |
#creating CSV file to be used | |
try: | |
file = open(os.path.expanduser(r"~/Desktop/TripAdviser Reviews.csv"), "wb") | |
file.write(b"Organization" + b"," + b"Address" + b"," + b"Reviewer" + b"," + b"Review Title" + b"," + b"Review" + b"," + b"Review Count" + b"," + b"Help Count" |