Coder Social home page Coder Social logo

zhihu-spider's Introduction

简介

这是什么

这是一个简易的爬虫工具,使用Python语言编写,用于zhihu全自动捕鱼,理论上,你可以爬取你感兴趣的任何问题,而不仅仅是小姐姐。

如何使用

编程使用

请确保你的Python版本是3.x,Windows环境下通过CMD或者PowerShell执行下面的命令:

python main.py

macOS环境,如果你的机器上同时有Python2.x和Python3.x,可通过以下命令运行:

python3 main.py

非编程使用

直接运行 released.exe 即可

  1. 输入title,给命名用存放文件夹命名。
  2. 输入question_id,知乎问题网址 https://www.zhihu.com/question/********/answer/########中的********
  3. 等待程序完成

声明

我是偶然间在zhihu看到这段脚本,但是代码没有排版和缩进,由于好奇,将代码整理,并做了一些改动和优化。

原始代码地址为:https://www.zhihu.com/question/297715922/answer/676693318

虽然做了比较大的改动,代码的著作权仍然归原作者所有,如果作者不希望公开,请邮件联系我删除。

为方便讨论,新建了一个WX群,扫描二维码加入。

wx_discussion_group_expire_2019-5-20

我们一起来让它变得更好吧。

写给新手

如果你是程序员,但是没有接触过Python语言,你可以稍微了解一下Python这门语言,这应该用不了多长时间,下面的教程希望可以帮到你:

https://www.runoob.com/python/python-tutorial.html

如果你没有过编程经验,可以按照这篇文章(抱歉我还没写,抽时间尽快补上)中的步骤来。

FAQ

(待补充)

RELEASE NOTE

(待补充)

LINKS

原zhihu回答:https://www.zhihu.com/question/297715922/answer/677731643

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.