hacka-data

1.1.0 • Public • Published

Hacka-data

Get Data for all your hackathon needs. This is great for hackathon to get quick and easy data in any city you wish. It uses yelp to find the different categories you wish to search by and saves them in an easy to use .csv file, for quick and easy viewing of the data, as well as importing the file into a database.

Getting started

To run this all you need to do is run

npm i -g hacka-data

You Must set some environment variables before using:

export yelp_consumer_key="your_key"
export yelp_consumer_secret="your_secret"
export yelp_token="your_token"
export yelp_token_secret="your_token_secret"

Expected usage:

hacka-data "Location" [categories]

or

hacka-data many "Location" [categories]

Passing the many keword will switch the functionality to instead of searching for places that have all of [categories], it takes each category and will perform an individual search for each one instead of grouping.

Where location is the area in which you want results, places with more then one name, such as Halifax, you will need to also supply state/province code along with it to specifiy which one you want. example: "Halifax, NS".

The categories is just n number of categories you want to search by, seporated by a space (example with more then one category below)

Examples

If you want to get just one of the categories then, lets say just vet:

hacka-data "halifax, NS" vet

you can group the search by different categories, lets say you want to group all vets who also have dogwalking services.

hacka-data "Halifax, NS" vet dogwalkers

You can keep adding as many categories as you wish here.

Making many queries with one call

hacka-data many "Halifax, NS" vet dogwalkers

This is the same as making two calls to hacka-data, one with vet and the other with dogwalkers. Except it is all put into one file.

List of categorys

https://www.yelp.com/developers/documentation/v2/all_category_list

Readme

Keywords

Package Sidebar

Install

npm i hacka-data

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • sookool99