Portfolio 1 Week 3: Using python to access various information through the use of libraries
- J J
- Nov 2, 2019
- 1 min read
Updated: Nov 29, 2019
Couple days back, our lecturer showed in class how he can make use of the raspberry PI to detect Bluetooth devices and print the device names out by making use of python.

Today, I completed the practical on how to send emails, access web services, as well as how to make use of various libraries to do so.
Sending emails using the SMTP library required my personal email address as well as the recipient email address. the email sent is in the HTML format, and requires 2 different parameters each containing vital data for the code to work, such as the message itself, as well as the various email addresses needed.


Through the next exercise to access web services, I have also learnt how to make use of the JSON library as well as how to open and read a URL in python, which allows python to open a URL and convert the JSON string, as well as to print out the result I want using the [] parameters.


Also, I have learnt how to make use of various regular expressions so that I can find specific data from a webpage by setting requirements. and the following regular expression you see below can be used to find email addresses in the same format.

Comments