Python Forum
Want to put date and time in a POST API call - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Want to put date and time in a POST API call (/thread-10084.html)



Want to put date and time in a POST API call - THX1138 - May-11-2018

I want to send notifications to myself from my Raspberry Pi using Twitter and Twitter's API. The format of the tweet needs to be:

POST https://api.twitter.com/1.1/statuses/update.json?status=Notification%20text
How do I make it so that the current date and time are appended to the end of the text? Any spaces need to be replaced with HTML escape codes. Thanks for any guidance.