GithubHelp home page GithubHelp logo

kelvinben / historicalarticlestopdf Goto Github PK

View Code? Open in Web Editor NEW
69.0 3.0 10.0 22 KB

一款可以将微信公众号历史文章、知识星球历史文章、博客文章批量转换为PDF的工具。

Python 100.00%

historicalarticlestopdf's Introduction

HistoricalArticlesToPdf

一款可以将任意微信历史文章、知识星球历史文章、博客文章批量转换为PDF的工具。

功能列表

已完善的功能

  • 多公众号文章提取
  • 任意微信公众号文章提取
  • 生成PDF文件以及HTML文件
  • 对文章中的图片自动下载
  • 增量获取公众号文章
  • 多线程对文章进行转换

计划中的功能

  • 使用微信账号进行公众号的提取
  • 使用cookie对公众号的提取
  • 知识星球历史文章的提权
  • 博客文章的提取
  • 红队相关情报信息提取
  • 对论坛权重文章进行爬取

必读

PS: 本项目依赖三方软件 wkhtmltopdf, 使用前需要先行安装wkhtmltopdf。

wkhtmltopdf的下载地址:

官网下载页面: https://wkhtmltopdf.org/downloads.html

使用方法

1. 下载代码到本地

git clone https://github.com/kelvinBen/HistoricalArticlesToPdf.git

2. 进入代码目录

cd HistoricalArticlesToPdf

3.安装依赖库

python3 -m  pip install -r requirements.txt

4.运行

提取一个公众号文章信息

python3 app.py wechat -n 公众号名称 -o pdf以及html文件输出目录

提取多个公众号文章信息

python3 app.py wechat -n 公众号名称1、公众号名称2、公众号名称3 -o pdf以及html文件输出目录

historicalarticlestopdf's People

Contributors

kelvinben avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

historicalarticlestopdf's Issues

freq control

一般300篇以上,就会限流。每次都从头爬起,无法从数据库中恢复断点

补充

安装依赖的时候还缺一个Pillow,request得换成requests吧。

整体赞~~~

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.