A business classifier that uses data from Facebook, Google, and Yelp.
Purpose
Compatibility
Setup
Functionality
Use Cases
Future Goals
The Business Classifier program is designed to categorize businesses using data from Facebook, Google, and Yelp. It was originally built in order to automate the classification of merchants who use iMobile3's point-of-sale and marketplace software, however, it can be used whenever a database of businesses needs to be classified.
The following code is compatible with Python 3.6 on Windows, Mac OS, and Linux.
- Clone this repository.
- Run
pip install -r requirements.txt
. - Run
python3.6 main.py
.
After running the program according to the directions above, the window pictured below is displayed. In this section, the functionality of each widget in this window will be explored in depth.
The following widgets are useful for specifying how input is read and how output is saved.
The Data File widget is for selecting the file that contains the business data.
The Results File widget is for selecting where the results should be saved.
The Business Name Columns widget is for specifying which columns of the data file contain the name of the business. If columns are to be combined, commas should be used to separate the column numbers. Note: column indexing begins at 0.
The Business Location Columns widget is for specifying which columns of the data file contain the location of the business. If columns are to be combined, commas should be used to separate the column numbers. Note: column indexing begins at 0.
The following widgets are useful for entering API keys that allow for access to Facebook and Yelp.
The Facebook Access Token widget allows a user to enter a Facebook access token. This access token allows the scraper to access the Facebook Graph API. Learn more.
The GeoNames Username widget allows a user to enter a GeoNames username. This username allows the scraper to access the functionality of GeoNames. Learn more.
The Yelp API Key widget allows a user to enter a Yelp API key. This key allows the scraper to access the functionality of the Yelp Fusion API. Learn more.
There only use case for this program is business classification. The functionality of the program may be expanded in the future, however, there are no plans to do so at the momment.
See Projects.