这里直接丢大佬的代码了,如下所示:
-- coding: utf-8 --
import requests, bs4
import smtplib
import schedule
import time
from bs4 import BeautifulSoup
from email.mime.text import MIMEText
from email.header import Header
account = ‘{0}’.format(‘发件人qq邮箱’)
password = ‘{0}’.format(‘qq邮箱授权码’)
receiver = ‘{0}’.format(‘收件人163邮箱或者qq邮箱’)
account = ‘{0}’.format(‘2352180977@qq.com’)
password = ‘{0}’.format(‘awmowqginzdijg’)
receiver = ‘{0}’.format(‘2352180977@qq.com’)
爬虫任务,获取sobooks网站上的书名和作者,其中页面的话,可以根据自己需求进行修改
def recipe_spider():
list_all = ‘’
num = 0
for a in range(1, 3):
n = ‘{0}{1}’.format(‘https://