Giter Site home page Giter Site logo

spider_baike_demo's Introduction

Welcome to spider_baike_demo 👋

spider_baike_demo

Simple crawler example, crawling data of Baidu Baike.

License GitHub forks GitHub watchersGitHub followers GitHub Starts

Development Environment

  • Python 3.6.5
  • 使用 bs4、urllib、re 模块

Easy problems

  1. urllib2 和 urllib3 在 Python3.x 后都被合并到 urllib 中

  2. 百度百科的词条关于 Python 的链接已经更改了,替换成新的即可

  3. 爬取的数据显示格式不正确,open(path, 'w', encoding='utf-8')

  4. html 的标签是成对出现的,切勿粗心大意少写标签的结束。

  5. 使用正则匹配的时候,也需要进行修改:href=re.compile(r'/item/*')

About

👤 Simplation

Show your support

Give a ⭐️ if this project helped you!

spider_baike_demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

529435389

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.