待爬取网站
1. 分析新闻通知标题:
2. 分析新闻通知链接
此处获取的是相对 URL,需要加上前缀 http://news.gdut.edu.cn/
。
3. 分析新闻通知来源
4. 分析新闻通知日期
代码运行结果:
如何获取 smtp 授权码:https://blog.csdn.net/weixin_45961774/article/details/105040536
完整源代码:https://github.com/Giyn/PythonScraper/blob/master/GDUT/scrape_GDUT_news_and_send_Email.py