Added better xpath selectors for the UI elements
This commit is contained in:
@@ -20,14 +20,14 @@ topic_path = publisher.topic_path(project_id, topic_name)
|
||||
publisher.delete_topic(request={"topic": topic_path})
|
||||
print(f"Topic '{topic_name}' deleted.")
|
||||
|
||||
|
||||
|
||||
'''
|
||||
|
||||
|
||||
# Create a pubsub topic
|
||||
publisher = pubsub_v1.PublisherClient()
|
||||
topic_name = "fp-topic-NFL-zipcodes"
|
||||
topic_path = publisher.topic_path(project_id, topic_name)
|
||||
topic = publisher.create_topic(request={"name": topic_path})
|
||||
topic = publisher.create_topic(request={"name": topic_path}, timeout=30)
|
||||
|
||||
|
||||
# Create a Pub/Sub subscription
|
||||
@@ -38,6 +38,7 @@ subscription = subscriber.create_subscription(
|
||||
name=subscription_path, topic=topic_path
|
||||
)
|
||||
|
||||
'''
|
||||
# Publish a message to the topic
|
||||
# Read the data from the csv file
|
||||
file_path = "C:/Users/Karen/Desktop/NFL_Cities.csv"
|
||||
@@ -58,4 +59,5 @@ async def receive_messages():
|
||||
print("Received message: {}".format(received_message.message.data))
|
||||
|
||||
|
||||
asyncio.run(receive_messages())
|
||||
asyncio.run(receive_messages())
|
||||
'''
|
||||
Reference in New Issue
Block a user