Daily Email Notification from SAP Developer Community!
By Arun Jacob
Image by Gerd Altmann from Pixabay
The goal of this personal project is to set up an Automated Email Notificaion mechanism that reads the latest Questions and Answers published on SAP Developer Community to specified email ids of users. Using data on questions and answeres scrapped from Sap.com, core content of the email is generated.
Open a connection to the URL, https://answers.sap.com/index.html using urllibData.
Once the connection is established, Http Status code: 200 is returned and we proceed to filter the HTML Data. The questions and answers follows a specific pattern in the DOM and after carefully examinining the same, we derive the pattern used here. Another Python library for Regular Expressions is used to get all the spcific items in an Array/List.
By looping over the above created Array, we generate the content with Title, link, description etc. For getting richer content we have utilized BeautifulSoup library for scrapping the data and form the email content.
Read Sap Community Network(SCN) Questions by using Python3 Libaries in less than 10 lines of code.
Would it be interesting if we could automate the task of monitoring a website of interest to check for possible updates? This partcular application written in Python3 achieves the task of reading the SCN community for latest questins being asked.
Can be tailored for further useful HTML tags.:relaxed:
Simple SCN Bot in 10 lines using Python
The below summarizes why we need a daily digest!!!
Thanks,
Arun