text in output as a message
Posted: 15. Sep 2021, 18:38
Dear Pushsafer,
I'm pretty new in coding and on your platform.
I have created a web scraper in Python, which prints me a specific text that is taken out of the website. I would like to set a notification that says the scraped text in the message (the text is different each time I run the process).
I managed to set up message notifications using your example:
From pushsafer import init, Client
init("<privatekey>")
Client("").send_message("Message", "Hello", "323", "1", "4", "2", "https://www.pushsafer.com", "Open Pushsafer", "0", "2", "60", "600", "1", "", "", "")
Example of my scrape:
for Word6 in soup.findAll(attrs={'example' : 'heyhowyoudoin'}):
print(Word6.text.strip())
However I can't figure out how to set the printed scraped text in the message automatically each time.
Thank you very much for your support.
Felix
I'm pretty new in coding and on your platform.
I have created a web scraper in Python, which prints me a specific text that is taken out of the website. I would like to set a notification that says the scraped text in the message (the text is different each time I run the process).
I managed to set up message notifications using your example:
From pushsafer import init, Client
init("<privatekey>")
Client("").send_message("Message", "Hello", "323", "1", "4", "2", "https://www.pushsafer.com", "Open Pushsafer", "0", "2", "60", "600", "1", "", "", "")
Example of my scrape:
for Word6 in soup.findAll(attrs={'example' : 'heyhowyoudoin'}):
print(Word6.text.strip())
However I can't figure out how to set the printed scraped text in the message automatically each time.
Thank you very much for your support.
Felix