Coder Social home page Coder Social logo

fengfengchensan / runoob-pdf- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gagayuan/runoob-pdf-

0.0 1.0 0.0 1.49 GB

把菜鸟教程(runoob.com)上的网页教程转换成pdf并下载(python_crawer_by_chrome)

Jupyter Notebook 27.98% Python 71.85% Shell 0.17%

runoob-pdf-'s Introduction

1,此脚本用来下载runoob教程为pdf文件,可用来给学习者来打印下来. pdf文件已经下载至 runoob 文件夹. 若想下载至您的本地,运行 python3 runoob_crawl.py

2,运行时会包含的错误: ERROR:gpu_process_transport_factory.cc(967)] Lost UI shared context. 这是chrome内在一个小bug,新版本已经修复.

3,merge_pdf_with_toc.py可用来合并pdf,并添加TOC,非常强大.(copy自国外的牛人)

4,可以在js.txt设置html的字体,宽度,样式,再保存到pdf

5,保存html网页至pdf的一些尝试: ①:用selenium只能下载一张长图pdf,很不完美. ②:用phantomjs可以下载可编辑的pdf,但是 不能分页,pdf高度难以设置

6,google-chrome --print-to-pdf 保存pdf非常好用,pdf会自动分页.

7,有四五个教程貌似什么原因解析错误中断了下载,又手动下载了下.

runoob-pdf-'s People

Watchers

 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.