Untapped beer list scraper for Big Hops San Antonio
Project description
# BeerMe
beerme is an untapped scraper for Big Hops locations in San Antonio, TX.
I built this utility because javascript page flipper is either too slow or too fast
(depending on which page you are looking at). Untapped does provide API access, but
only to certain individuals.
## Installation
```shell
$ pip install beerme
```
If that does not work, make sure you have python and pip installed. Also, you may need to use
sudo or the `--user` flag for `pip`
## Usage
This version of beerme only has `json` output support. I will add console formatted output
and the ability to filter, sort, and search at some point in the future.
```
usage: beerme [-h] [--list] [-J] [--dump] [-p] [-d] [-f] [-s SEARCH]
[-e EXCLUDE]
[location]
BeerMe BigHops script 0.9
positional arguments:
location Beer target
optional arguments:
-h, --help show this help message and exit
--list list available locations
-J, --json Output information in json
--dump Dump the raw tap list html
-p, --show-prices Show price and volume data
-d, --draft-only Exclude bottles and cans
-f, --fills-only Only include beer that can be purchased in growlers
-s SEARCH, --search SEARCH
A keyword to search for. For example: "IPA". This can
be used multiple times to create a compound search
-e EXCLUDE, --exclude EXCLUDE
A keyword used to exclude results. For example:
"Sour". This can be used multiple times
```
For example:
```
$ beerme bh-bitters -s IPA -s Pale -e Imperial
Tejas Clara / Big Bend
Lager - Pale | 4.3% ABV
Merry Buffing Xmas / Buffalo Bayou
IPA - American brewed with Spruce tips | 7.6% ABV
Axis IPA / Real Ale
IPA - American | 7% ABV
Pub Crawl / Saint Arnold
Pale Ale - American | 4.7% ABV
Syncopation / NOLA
IPA - American | 6% ABV
Celebration Ale / Sierra Nevada
IPA - American | 6.8% ABV
Accumulation (2018) / New Belgium
IPA - White | 6.2% ABV
Citradelic: Tangerine IPA / New Belgium
IPA - American | 6% ABV
SMaSh and GRaB / Legal Draft Beer
IPA - American | 6.2% ABV
```
## Locations
Currently, I have hard code the following location map in the source
```python
location_map = {
'bh-bridge': 'https://business.untappd.com/boards/24264',
'bh-bitters': 'https://business.untappd.com/boards/24239',
'bh-huebner': 'https://business.untappd.com/boards/24278',
'bh-shaenfield': 'https://business.untappd.com/boards/27711'
}
```
It should be trivial to adapt this source to work with other locales
## Notice
I do not represent Big Hops or Untapped in any way. Use this software at your own risk.
beerme is an untapped scraper for Big Hops locations in San Antonio, TX.
I built this utility because javascript page flipper is either too slow or too fast
(depending on which page you are looking at). Untapped does provide API access, but
only to certain individuals.
## Installation
```shell
$ pip install beerme
```
If that does not work, make sure you have python and pip installed. Also, you may need to use
sudo or the `--user` flag for `pip`
## Usage
This version of beerme only has `json` output support. I will add console formatted output
and the ability to filter, sort, and search at some point in the future.
```
usage: beerme [-h] [--list] [-J] [--dump] [-p] [-d] [-f] [-s SEARCH]
[-e EXCLUDE]
[location]
BeerMe BigHops script 0.9
positional arguments:
location Beer target
optional arguments:
-h, --help show this help message and exit
--list list available locations
-J, --json Output information in json
--dump Dump the raw tap list html
-p, --show-prices Show price and volume data
-d, --draft-only Exclude bottles and cans
-f, --fills-only Only include beer that can be purchased in growlers
-s SEARCH, --search SEARCH
A keyword to search for. For example: "IPA". This can
be used multiple times to create a compound search
-e EXCLUDE, --exclude EXCLUDE
A keyword used to exclude results. For example:
"Sour". This can be used multiple times
```
For example:
```
$ beerme bh-bitters -s IPA -s Pale -e Imperial
Tejas Clara / Big Bend
Lager - Pale | 4.3% ABV
Merry Buffing Xmas / Buffalo Bayou
IPA - American brewed with Spruce tips | 7.6% ABV
Axis IPA / Real Ale
IPA - American | 7% ABV
Pub Crawl / Saint Arnold
Pale Ale - American | 4.7% ABV
Syncopation / NOLA
IPA - American | 6% ABV
Celebration Ale / Sierra Nevada
IPA - American | 6.8% ABV
Accumulation (2018) / New Belgium
IPA - White | 6.2% ABV
Citradelic: Tangerine IPA / New Belgium
IPA - American | 6% ABV
SMaSh and GRaB / Legal Draft Beer
IPA - American | 6.2% ABV
```
## Locations
Currently, I have hard code the following location map in the source
```python
location_map = {
'bh-bridge': 'https://business.untappd.com/boards/24264',
'bh-bitters': 'https://business.untappd.com/boards/24239',
'bh-huebner': 'https://business.untappd.com/boards/24278',
'bh-shaenfield': 'https://business.untappd.com/boards/27711'
}
```
It should be trivial to adapt this source to work with other locales
## Notice
I do not represent Big Hops or Untapped in any way. Use this software at your own risk.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beerme-1.0.tar.gz
(4.5 kB
view details)
Built Distributions
beerme-1.0-py3.7.egg
(8.1 kB
view details)
beerme-1.0-py3-none-any.whl
(4.8 kB
view details)
File details
Details for the file beerme-1.0.tar.gz
.
File metadata
- Download URL: beerme-1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb93e5bb03ce2bedd3c0b9945db147fb822d5855ad584a0f1eb9f2e446c3e732 |
|
MD5 | a6d265cfe59782008394799ab7e91109 |
|
BLAKE2b-256 | b9fb081e780fd20f40471fc20249564ddae3179f19c82c7475601f31388b776c |
File details
Details for the file beerme-1.0-py3.7.egg
.
File metadata
- Download URL: beerme-1.0-py3.7.egg
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683cb9ac09a573b8e629707d6d3257bebe9c362a4921133c20e90813244c4993 |
|
MD5 | 773f59061c81597e5462b9c4939f33f6 |
|
BLAKE2b-256 | d8ba3001f81b7f9c909c599f7cde2133ab6c3e0090701d886956bcf34305add0 |
File details
Details for the file beerme-1.0-py3-none-any.whl
.
File metadata
- Download URL: beerme-1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4672ff81783c5c3a6cb6660e65eeae28f664b7090a81058ad1a1629fe2bcf66 |
|
MD5 | 1e030e37c758cd4b3374de3bbba99383 |
|
BLAKE2b-256 | 14bd67aa7d47c0f16e67eeb108b6f258b25cf59de102f53cf2bf68a5699ae5a4 |