Python | RESTful API
This project demonstrates my proficiency in leveraging RESTful APIs to create a seamless integration between a weather forecasting service and social media platforms. By utilising the OpenWeatherMap API, I retrieve real-time weather forecast data and send a message to myself on Facebook Messenger, showcasing my ability to handle data retrieval and automated content posting.
Key Features:
Real-Time Weather Forecasting:
Utilised the OpenWeatherMap API to fetch up-to-date weather forecast data.
Implemented secure handling of API keys and parameters using environment variables.
Parsed and analysed the JSON response to determine weather conditions for the next several hours.
Automated Social Media Posting:
Integrated with the Facebook API to message weather updates automatically.
Crafted dynamic and user-friendly weather updates, including icons indicating rain or sunshine.
Demonstrated capability in sending HTTP POST requests to interact with social media platforms programmatically.
Secure and Efficient Data Handling:
Ensured sensitive information such as API keys are securely managed through environment variables.
Employed the requests library for robust and reliable API interaction.
Utilised Python's datetime module to generate current date information for the posts.
Technical Skills Demonstrated:
RESTful API Integration: Proficient in making HTTP GET and POST requests, handling API responses, and using query parameters for customised data retrieval.
Data Processing and Analysis: Skilled in parsing JSON data and performing conditional logic to interpret weather conditions.
Automation and Scripting: Expertise in automating repetitive tasks, such as social media posting, using Python.
Secure Coding Practices: Knowledgeable in securing sensitive information through environment variables and best practices in API key management.