From da9a963096c0402a5726bc718c35d5512dd7a249 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 17:09:25 -0800 Subject: [PATCH 01/17] houseseat --- houseseats.com/notify-on-event/README.md | 16 ++++ .../notify-on-event/items_to_search_for.txt | 2 + houseseats.com/notify-on-event/search.py | 79 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 houseseats.com/notify-on-event/README.md create mode 100644 houseseats.com/notify-on-event/items_to_search_for.txt create mode 100644 houseseats.com/notify-on-event/search.py diff --git a/houseseats.com/notify-on-event/README.md b/houseseats.com/notify-on-event/README.md new file mode 100644 index 00000000..3b3d1078 --- /dev/null +++ b/houseseats.com/notify-on-event/README.md @@ -0,0 +1,16 @@ +# notify-on-event +The purpose of this set of scripts are to continuously search the houseseats.com site after a user has logged in +and search for specific keywords in the events list. Once an event is found, it should send a Slack +notification to a Slack destination. + +# Envars + +``` +export HOUSESEAT_USERNAME= +export HOUSESEAT_PASSWORD= +``` + +# Run +``` +python3 search.py +``` diff --git a/houseseats.com/notify-on-event/items_to_search_for.txt b/houseseats.com/notify-on-event/items_to_search_for.txt new file mode 100644 index 00000000..6e004a10 --- /dev/null +++ b/houseseats.com/notify-on-event/items_to_search_for.txt @@ -0,0 +1,2 @@ +bee gees +murray diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py new file mode 100644 index 00000000..cd00cd58 --- /dev/null +++ b/houseseats.com/notify-on-event/search.py @@ -0,0 +1,79 @@ +# python script that takes in 4 user inputs via the command line input: FACILITY_ID, TOUR_ID, YEAR, MONTH. Then http get this url: https://www.recreation.gov/api/ticket/availability/facility/${FACILITY_ID}/monthlyAvailabilitySummaryView?year=${YEAR}&month=${MONTH}&inventoryBucket=FIT&tourId=${TOUR_ID}. It will return a json which we will parse in a loop + +import requests +import sys +import os +import re +import urllib.parse +from slack_sdk import WebClient +from slack_sdk.errors import SlackApiError + +# How many tickets are you looking for per time slot +NUMBER_OF_RESERVABLE_PER_TIME_SLOT = 2 +SLACK_CHANNEL = os.environ['SLACK_CHANNEL'] + +## Get envars +debug_on = os.environ.get('DEBUG_ON') + +## Disable slack call for local runs +slack_enabled = 'true' +if os.environ.get('DISABLE_SLACK') == 'true': + slack_enabled = 'false' + +## Send message to Slack +## doc: https://github.com/slackapi/python-slack-sdk#sending-a-message-to-slack +def send_to_slack(message): + client = WebClient(token=os.environ['SLACK_BOT_TOKEN']) + + response = client.chat_postMessage(channel=SLACK_CHANNEL, text=message) + +# Create a session object +s = requests.Session() + +# Define the login data +login_data = { + 'email': os.environ['HOUSESEAT_USERNAME'], + 'password': os.environ['HOUSESEAT_PASSWORD'], + 'submit': 'login', + 'lastplace': '', +} + +headers = { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3', + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', + 'Accept-Language': 'en-US,en;q=0.5' + } + +# URL of the login page +login_url = 'https://lv.houseseats.com/member/index.bv' + +# Send a POST request to the login page with your login data +s.post(login_url, data=login_data, headers=headers) + +# Now s maintains the 'logged in' session. You can use it to send additional requests +response = s.get('https://lv.houseseats.com/member/ajax/upcoming-shows.bv?supersecret=&search=&sortField=&startMonthYear=&endMonthYear=&startDate=&endDate=&start=0', headers=headers) + +# Print the content of the 'protected page' +# print(response.text) + +with open('items_to_search_for.txt', 'r') as file: + for line in file: + ## Do something with each line + search_item = line.strip() + # print(search_item) + + # Define regular expression pattern + pattern = r'bee' + + # Use regular expression to extract text + result = re.search(pattern, response.text.lower()) + + # Print extracted text + if result: + print(f'found {search_item}') + + ## Send message to Slack + if slack_enabled == 'true': + send_to_slack(f""" + Search found: {search_item} + """) From ead95b1ad8490987ebc7a92ff9780ebc920a47c4 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 17:15:15 -0800 Subject: [PATCH 02/17] fixing regex search --- houseseats.com/notify-on-event/items_to_search_for.txt | 1 + houseseats.com/notify-on-event/search.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/items_to_search_for.txt b/houseseats.com/notify-on-event/items_to_search_for.txt index 6e004a10..bb8f8a0d 100644 --- a/houseseats.com/notify-on-event/items_to_search_for.txt +++ b/houseseats.com/notify-on-event/items_to_search_for.txt @@ -1,2 +1,3 @@ bee gees murray +fooxxxx diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index cd00cd58..89f64fbd 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -63,7 +63,7 @@ def send_to_slack(message): # print(search_item) # Define regular expression pattern - pattern = r'bee' + pattern = fr'{search_item}' # Use regular expression to extract text result = re.search(pattern, response.text.lower()) From cedde01d5864c8820d2f553352ec854a27b051f8 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 18:00:46 -0800 Subject: [PATCH 03/17] changing it to an exclude list --- houseseats.com/notify-on-event/README.md | 30 +++++++++ .../notify-on-event/items_to_search_for.txt | 3 - houseseats.com/notify-on-event/search.py | 64 +++++++++++++------ 3 files changed, 73 insertions(+), 24 deletions(-) delete mode 100644 houseseats.com/notify-on-event/items_to_search_for.txt diff --git a/houseseats.com/notify-on-event/README.md b/houseseats.com/notify-on-event/README.md index 3b3d1078..739c8570 100644 --- a/houseseats.com/notify-on-event/README.md +++ b/houseseats.com/notify-on-event/README.md @@ -14,3 +14,33 @@ export HOUSESEAT_PASSWORD= ``` python3 search.py ``` + +# The process + +Logs in + +Gets the events page's source + +Search for and get a list of all instances of the pattern: +``` +

Murray The Magician at Tropicana Las Vegas

+``` +This would be all of the events. + +With this list, loop through it. + +For each items found, compare it to the items in the `items_to_exclude.txt` file list. + +If the item is in the exclude list, then skip it. + +If the item is not in the exclude list, send and alert on it + + +Then for each item, if the string in the excluded text file is not in there, it will send a +notification. This represents a show that we don't know about and is interested in. There are +new shows or one time shows that comes up sometimes and these are the shows we are trying to find. + + + + +## scratch diff --git a/houseseats.com/notify-on-event/items_to_search_for.txt b/houseseats.com/notify-on-event/items_to_search_for.txt deleted file mode 100644 index bb8f8a0d..00000000 --- a/houseseats.com/notify-on-event/items_to_search_for.txt +++ /dev/null @@ -1,3 +0,0 @@ -bee gees -murray -fooxxxx diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 89f64fbd..326e776f 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -56,24 +56,46 @@ def send_to_slack(message): # Print the content of the 'protected page' # print(response.text) -with open('items_to_search_for.txt', 'r') as file: - for line in file: - ## Do something with each line - search_item = line.strip() - # print(search_item) - - # Define regular expression pattern - pattern = fr'{search_item}' - - # Use regular expression to extract text - result = re.search(pattern, response.text.lower()) - - # Print extracted text - if result: - print(f'found {search_item}') - - ## Send message to Slack - if slack_enabled == 'true': - send_to_slack(f""" - Search found: {search_item} - """) + +# Find all instances of the

title of a show +pattern = r'

(.*?)

' + +# Use re.findall() to find all instances of the pattern in the string +matches = re.findall(pattern, response.text.lower()) + +## Loop through the list of matches which should be all of the shows/events on the page +for event in matches: + print(f'found: {event[0]} | {event[1]}') + + ## Compare to see if the event is in the exclude list. + ## If it is in the exclude list, then do not send a message to Slack + ## if it is not in the exclude list, then send a message to Slack + found_exclude = False + + with open('items_to_exclude.txt', 'r') as file: + for line in file: + ## Do something with each line + search_item = line.strip() + # print(search_item) + + # Define regular expression pattern + pattern = fr'{search_item}' + + # Use regular expression to extract text + result = re.search(pattern, event[1].lower()) + + # Print extracted text + if result: + print(f'found {search_item}') + + found_exclude = True + + ## If the event is not in the exclude list, then send a message to Slack + if found_exclude == False: + print(f'not found in exclude list: {event[0]} | {event[1]}') + + ## Send message to Slack + if slack_enabled == 'true': + send_to_slack(f""" + Search found: {event[1]} + """) From 451221ed900a2d5221baf6234fdc1a94c4b47269 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 18:03:48 -0800 Subject: [PATCH 04/17] Adding github action --- .../workflows/houseseat-notify-on-event.yml | 45 +++++++++++++++++++ .../notify-on-event/items_to_exclude.txt | 40 +++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 .github/workflows/houseseat-notify-on-event.yml create mode 100644 houseseats.com/notify-on-event/items_to_exclude.txt diff --git a/.github/workflows/houseseat-notify-on-event.yml b/.github/workflows/houseseat-notify-on-event.yml new file mode 100644 index 00000000..ea6b06e6 --- /dev/null +++ b/.github/workflows/houseseat-notify-on-event.yml @@ -0,0 +1,45 @@ +## Sends a slack message +## Docs: +## * https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges +## +name: "Slack - houseseat - notify on event" + +on: + # Push is for testing only to allow you to test this workflow without + # a merge and just a push. +# push: + pull_request: + # types: + # - closed + # branches: + # - main + + ## Schedule doc: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule + schedule: + ## Cron time is in UTC: 5pm UTC is 10am PST + - cron: '* * * * *' + +env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + SLACK_CHANNEL: 'C05B9LLPVD5' # sf-devops.slack.com - recreation-gov + HOUSESEAT_USERNAME: ${{ secrets.HOUSESEAT_USERNAME }} + HOUSESEAT_PASSWORD: ${{ secrets.HOUSESEAT_PASSWORD }} + + # Enable debug output + DEBUG: false + + +jobs: + check_open_reservations: + # if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup + run: | + pip install slack-sdk + - name: Run Script + run: | + cd ./houseseats.com/notify-on-event + python3 search.py diff --git a/houseseats.com/notify-on-event/items_to_exclude.txt b/houseseats.com/notify-on-event/items_to_exclude.txt new file mode 100644 index 00000000..c9435a84 --- /dev/null +++ b/houseseats.com/notify-on-event/items_to_exclude.txt @@ -0,0 +1,40 @@ +bee gees +murray +fooxxxx +l.a. comedy club +mondays dark +carpenters legacy +happy hour comedy +pressbox swing dance +elvis +rich little +the jets +the australian +flyover las vegas +trusted nail +tina turner +jew man group +jay owenhouse +sinatra up close +the joi jazz orchestra +fil-am comedy show +carrot top +a touch of burlesque +adam london laughternoon +house of magic +banachek +eriko trevensolli magic +delirious comedy club +the chris and james dueling piano show +motown extreme +bleach presents +thunder from down under +the magic of jen kramer +chase brown +downtown comedy lounge +black magic live +justin tranz comedy hypnosis show +black girl magic +comedysportz +late night magic +shock collar comedy From cca29809b77d47c3e967a6952bcf86b0cc5dc1a4 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 18:06:54 -0800 Subject: [PATCH 05/17] adding start output --- .github/workflows/houseseat-notify-on-event.yml | 2 +- houseseats.com/notify-on-event/search.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/houseseat-notify-on-event.yml b/.github/workflows/houseseat-notify-on-event.yml index ea6b06e6..4c8432d7 100644 --- a/.github/workflows/houseseat-notify-on-event.yml +++ b/.github/workflows/houseseat-notify-on-event.yml @@ -30,7 +30,7 @@ env: jobs: - check_open_reservations: + run: # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 326e776f..b1c128b7 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -27,6 +27,9 @@ def send_to_slack(message): response = client.chat_postMessage(channel=SLACK_CHANNEL, text=message) + +print('Starting program...') + # Create a session object s = requests.Session() From da557dbae2abc8c3a4f16a86d0e11fc3c22226b0 Mon Sep 17 00:00:00 2001 From: garland Date: Mon, 5 Feb 2024 18:07:41 -0800 Subject: [PATCH 06/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index b1c128b7..369ecc97 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -57,7 +57,7 @@ def send_to_slack(message): response = s.get('https://lv.houseseats.com/member/ajax/upcoming-shows.bv?supersecret=&search=&sortField=&startMonthYear=&endMonthYear=&startDate=&endDate=&start=0', headers=headers) # Print the content of the 'protected page' -# print(response.text) +print(response.text) # Find all instances of the

title of a show From 0cd73af825773d9aa45a9ec1bb05f2a8a25810f5 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 07:54:13 -0800 Subject: [PATCH 07/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 369ecc97..ab650685 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -95,7 +95,7 @@ def send_to_slack(message): ## If the event is not in the exclude list, then send a message to Slack if found_exclude == False: - print(f'not found in exclude list: {event[0]} | {event[1]}') + print(f'[NOTIFY] not found in exclude list: {event[0]} | {event[1]}') ## Send message to Slack if slack_enabled == 'true': From 75b34275c9e09b0d4992400992eb8514148bcada Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 07:56:21 -0800 Subject: [PATCH 08/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index ab650685..7ae4a6ed 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - Search found: {event[1]} + [Houseseat] Search found: {urllib.parse.unquote(event[1])} """) From 99d1684234d7c7c06f84f5c0a5a69dd73293a8b3 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:03:06 -0800 Subject: [PATCH 09/17] debugging... --- houseseats.com/notify-on-event/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 7ae4a6ed..275400ae 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -61,7 +61,7 @@ def send_to_slack(message): # Find all instances of the

title of a show -pattern = r'

(.*?)

' +pattern = r'

(.*?)

' # Use re.findall() to find all instances of the pattern in the string matches = re.findall(pattern, response.text.lower()) @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - [Houseseat] Search found: {urllib.parse.unquote(event[1])} + [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> """) From f2ad1106a3f5832613193806743ef533af7e659e Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:05:31 -0800 Subject: [PATCH 10/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 275400ae..a32f02b3 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> + [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> """) From 7176b036337233d270e4b0a7dc41ffb08d266c19 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:06:16 -0800 Subject: [PATCH 11/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index a32f02b3..118b330e 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> + [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> | """) From fc96aacd0450275343ed026d74dbc97ecb2685b4 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:07:30 -0800 Subject: [PATCH 12/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 118b330e..3f765edd 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - [Houseseat] Search found: <{urllib.parse.unquote(event[1])}|Click here> | + [Houseseat] Search found: | """) From 1c917b468ff16260405f568db25d8c9e5e1ff6e6 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:09:18 -0800 Subject: [PATCH 13/17] debugging... --- houseseats.com/notify-on-event/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 3f765edd..72179be0 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,6 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - [Houseseat] Search found: | + *[Houseseat]* Search found: + """) From b7c07e987ea3893f891c744e4a08da55d6a507ed Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:12:27 -0800 Subject: [PATCH 14/17] debugging... --- houseseats.com/notify-on-event/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 72179be0..64586815 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -61,7 +61,7 @@ def send_to_slack(message): # Find all instances of the

title of a show -pattern = r'

(.*?)

' +pattern = r'

(.*?)

' # Use re.findall() to find all instances of the pattern in the string matches = re.findall(pattern, response.text.lower()) @@ -100,6 +100,6 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - *[Houseseat]* Search found: + *[Houseseat]* Search found: """) From 6f8f57d317c15c391706fe5be3d2908e6d2f1316 Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:14:10 -0800 Subject: [PATCH 15/17] debugging... --- houseseats.com/notify-on-event/search.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 64586815..893aab3b 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,6 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - *[Houseseat]* Search found: - + *[Houseseat]* Search found: """) From f82e47649c74467dee0d585dbbfbf4083245707c Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:15:07 -0800 Subject: [PATCH 16/17] debugging... --- houseseats.com/notify-on-event/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 893aab3b..767bae04 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -100,5 +100,5 @@ def send_to_slack(message): ## Send message to Slack if slack_enabled == 'true': send_to_slack(f""" - *[Houseseat]* Search found: + *[Houseseat]* Search found: """) From 9091266d809d43e4c9128a666f04415b14ffbc8c Mon Sep 17 00:00:00 2001 From: garland Date: Tue, 6 Feb 2024 08:20:19 -0800 Subject: [PATCH 17/17] turning off hmtl output --- houseseats.com/notify-on-event/items_to_exclude.txt | 1 + houseseats.com/notify-on-event/search.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/houseseats.com/notify-on-event/items_to_exclude.txt b/houseseats.com/notify-on-event/items_to_exclude.txt index c9435a84..e312d6e9 100644 --- a/houseseats.com/notify-on-event/items_to_exclude.txt +++ b/houseseats.com/notify-on-event/items_to_exclude.txt @@ -38,3 +38,4 @@ black girl magic comedysportz late night magic shock collar comedy +micki free diff --git a/houseseats.com/notify-on-event/search.py b/houseseats.com/notify-on-event/search.py index 767bae04..9418280d 100644 --- a/houseseats.com/notify-on-event/search.py +++ b/houseseats.com/notify-on-event/search.py @@ -57,7 +57,7 @@ def send_to_slack(message): response = s.get('https://lv.houseseats.com/member/ajax/upcoming-shows.bv?supersecret=&search=&sortField=&startMonthYear=&endMonthYear=&startDate=&endDate=&start=0', headers=headers) # Print the content of the 'protected page' -print(response.text) +# print(response.text) # Find all instances of the

title of a show