GithubHelp home page GithubHelp logo

fenglaopao / python-scrapy-zhihu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jwzh222/python-scrapy-zhihu

0.0 1.0 0.0 129 KB

知乎一些文章开启「禁止转载」不能复制粘贴,写了个小工具爬这种内容。其中模拟登陆模仿了@egrcc的方式

Python 100.00%

python-scrapy-zhihu's Introduction

声明: 此爬虫脚本目的是方便获取这类「禁止转载」文章,仅供个人备份学习之用,知乎官方声明“除非获得原作者的单独授权,任何第三方不得转载标注了「禁止转载」的内容,否则均视为侵权。”

使用知乎过程中遇到喜欢的文章习惯性想拷贝下来备份到自己笔记里,却发现作者开启了「禁止转载」,不能复制粘贴。通常我都是截图备份到笔记,但这样不方便编辑。 image

使用说明: 1.python login.py(登录知乎网站) 2.python get.py(获取需要的回答文章) image

代码说明: 1.登录:login.py 登录知乎,利用@egrcc的方式:https://github.com/egrcc/zhihu-python。 request.Session方式,验证码处理采用人工输入的方式 2.获取:执行get.py,根据程序提示按顺序输入问题url和作者ID,程序则自动将此回答爬下来写到本地txt文件。

待完成: 对于有图片的文章,目前还未完成把图片一并下载,与文字排版输出到本地文件

python-scrapy-zhihu's People

Contributors

jwzh222 avatar

Watchers

James Cloos 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.