GithubHelp home page GithubHelp logo

clean-baidutieba's Introduction

clean-baidutieba

删除自己在百度贴吧的发帖和回复

requirements

sudo pip3 install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/

或者

sudo pip3 install requests beautifulsoup4 lxml -i https://pypi.mirrors.ustc.edu.cn/simple/

usage

一个可选参数

-m --match: 用来匹配自己回复的内容,如果匹配到就删,匹配不到就pass,默认值是.*

一共有3次输入

  1. 刚开始输入cookies,注意格式: Cookie: xxx=xxx; ... 直接从chrome里访问以下tieba.baidu.com然后把request headers中view source,把cookie一行复制过来就可以

  2. 获取发表的帖子和发表的回复前有两次输入,输入的是json文件名,默认程序执行目录,这个是为了让第二次启动这个程序的时候加载json。第一次打开直接按Enter

  3. 第一次爬完后会有2个xxxfail.json,然后每12h后程序加载这两个文件再次尝试删除,这两个文件每次删除遍历结束会重写

todo

有个错误码不知什么情况,230308,据说是tbs不对,但是这里获取的tbs从源码里找的。。也不造为啥不对。。

clean-baidutieba's People

Contributors

lc4t avatar

Watchers

James Cloos avatar Lilith-Sangreal 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.