Skip to content

Instantly share code, notes, and snippets.

View besimgh's full-sized avatar

Besim Ismailji besimgh

View GitHub Profile
#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"