Coder Social home page Coder Social logo

yunzhongzhuhuo / sespider1024 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swyftg/sespider1024

0.0 2.0 0.0 11 KB

超级快速爬取1024社区,将种子和配图保存本地,发送到指定邮箱的神奇代码【暂定长期维护中。。。】

License: MIT License

Python 100.00%

sespider1024's Introduction

SESpider1024

Scrapy 高阶玩法:

  • 爬取1024社区
  • 将种子和种子配图通过FilesPipeline快速下载到本地
  • 将种子和种子配图可以通过Email发送到指定邮箱

酸爽

使用方法

在 settings.py 文件里面,只需要配置:

ROOT_URL = "https://cc.cbcb.us/"        # 这里需要更新到最新的地址
									# 这里是用126邮箱做例子,并不局限126邮箱
SMTP_HOST = "smtp.126.com"          # 发送邮件的smtp服务器
SMTP_USER = "[email protected]"       # 用于登录smtp服务器的用户名,也就是发送者的邮箱
SMTP_PWD = "XXXXXXX"             # 授权码,和用户名user一起,用于登录smtp, 非邮箱密码
SMTP_PORT = 25                      # smtp服务器SSL端口号,默认是465,具体是什么,网上一搜邮箱域名和他的smtp就知道了
SMTP_SENDER = "[email protected]"      # 发送方的邮箱
SMTP_TO_LIST = ["[email protected]", "[email protected]"]     # 发送目标邮箱地址,是个list

同时需要注意,邮箱的配置,目前可以参考这篇文章设置即可,随后会更新文档。

大家慢慢爽

关注微信公众号『皮克啪的铲屎官』,天天硬核,惊喜不断。

sespider1024's People

Contributors

swyftg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.