Code Monkey home page Code Monkey logo

mm131_spider_wordpress's Introduction

mm131_spider_wordpress

本脚本只支持python3,需要将系统语言设置成utf8

演示站:https://luoli.se

需要安装的库

pip3 install pymysql
pip3 install requests

关于使用

需要打开脚本文件设置连接的mysql信息,在代码第10行 还有要修改第25行的图床key,和图床url,只支持chevereto

已知BUG

1.下载后会在temp生成下载图片,不过并不会移除旧的图片(会直接替换),可能代码逻辑有问题,但不影响使用 2.脚本中,如果图床已有一篇文章图片,会自动跳过,不会发布 3.在上传中有限制隔1秒上传,如果不需要请自行删除,在代码第29行 4.在执行目录会生成文章名.txt文件,这是用于脚本判断是否更新的文件,文件内容为文章内容

运行

mkdir temp
python3 spider.py

联系作者

QQ:47313013 邮箱:[email protected]

mm131_spider_wordpress's People

Contributors

eqblog 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.