top of page

Week 3-

Learning How to use Anaconda

where-is-anaconda-located.png

Lab 3-3: 

Sending Emails(Part I)

In this exercise, we had to allow our email accounts to be accessible by less secure applications. Hence, we decided to set up a dummy email account so that the security of our real account will not be constricted. 

The images below show how to send an email message via python programming, and the results.

IMG_0971.JPG
IMG_0970.JPG

Sending Emails(Part II)

Lab 3-3 Sending emails.jpg

For the next part of the exercise, I created another dummy email, "ongpatrick51@gmail.com".

The code is similar to the one above, apart from the eaddresses and names list.

Lab 3-3 Sending emails 2.jpg

The result for sending emails (Part II)

My thoughts

By using this program, it makes it more efficient to send emails to a group of people. It is very helpful, especially for companies that send mass emails to their customers. They can use a similar program rather than saving time and manpower to send it one by one. Furthermore, it is much easier to style the text via CSS.

Screen Scraping

Screen scraping is a quick way to gather and collate data. In this exercise, we are scraping email addresses from a webpage. This can be applied in the previous exercise, where we can scrape these emails and send all of them the same message within minutes. I am fond of this idea as it is hassle-free, and efficient! 

Lab 3-3 Screen scraping (2).jpg

Accessing Web Services

Accessing web services allows various applications to share data. This makes it easy to create, read, update, and delete the data obtained.

An example would be to access a currency web service to get the latest interbank exchange rates. The program(as shown below) will prompt the user to input the rates of any currency. 

Lab 3-3 Currency services(3).jpg

Output:

Lab 3-3 Currency services(2).jpg

Another example is to access a weather web service. This program displays the temperature in Degree Celsius.

Lab 3-3 weather services.jpg

My thoughts

This program can be implemented in an application to get real-time information. This may be very practical and cost-saving for startup companies that do not have the resources to obtain the data yet.

bottom of page