Browsed by
标签:hostloc

你想收到hostloc每日热帖的邮件么?

你想收到hostloc每日热帖的邮件么?

碎碎念

掐指一算,混loc的日子应该也快一年了,刚开始还几乎每天都上论坛上翻翻帖子,可后来到现在越来越少上了,但也还会隔一段时间猛刷上个把小时,今天闲来无事写了个小爬虫用来每日推送loc的热帖。

代码

#!/usr/bin/env python3
# coding = 'utf-8'
"""
@Time    : 2020/3/26-18:51
@Author  : sharp
@FileName: hostloc_hot.py
@Software: PyCharm
@Blog    :https://www.sharpgan.com/
"""

import time
import smtplib
import requests
from bs4 import BeautifulSoup
from email.mime.text import MIMEText

HOST = 'smtp.qq.com'
PORT = 587
SENDER = '@qq.com'
RECEIVER = '@qq.co
阅读更多