《自然语言处理实战入门》 第二章:NLP 前置技术----爬取本人CSDN博客

文章大纲

  • 1对象关系映射 ORM
    • 1.1 简介
    • 1.2 博客相关信息与对象映射
  • 2. 博客爬虫的编写
    • 2.1 爬虫爬取逻辑回顾
    • 2.2 爬取本人CSDN 博客 爬虫逻辑


1对象关系映射 ORM

1.1 简介

ORM框架的作用就是把数据库表的一行记录与一个对象互相做自动转换。

正确使用ORM的前提是了解关系数据库的原理。

SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

It provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language.

https://www.sqlalchemy.org/

ORM的全称是:Object Relational Mapp

你可能感兴趣的:(自然语言处理实战入门)