|
|
@@ -6,7 +6,6 @@ import os
|
|
|
import sys
|
|
|
from pprint import pprint
|
|
|
from datetime import datetime
|
|
|
-from urllib.parse import urlencode
|
|
|
# from urllib.request import Request, urlopen
|
|
|
import requests
|
|
|
|
|
|
@@ -22,7 +21,6 @@ def broadcast(name, timestamp, price, quantity, this_drop):
|
|
|
string = "{}: {} dropped {} shares at ${:.2f} for a grand total of ${:.1f}B".format(
|
|
|
time, name, quantity, price, this_drop_decimal)
|
|
|
json = {'content': string}
|
|
|
- print(urlencode(json).encode())
|
|
|
response = requests.post(url, json=json)
|
|
|
if response.status_code in [200, 204]:
|
|
|
print("Webhook executed")
|