NLP基础之爬虫数据入库Mysql

LP基础之爬虫数据入库Mysql
爬取瓜子二手车网站的大众车(任何品牌车辆)的第一页的报价信息,把结果存入数据库,爬取信息包括 车名 公里数 年份和价格 。

爬虫入库代码

# -*- coding: utf-8 -*-
import pymysql

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
import  os,sys
curPath =os.path.abspath((os.path.dirname(__file__))

猜你喜欢

转载自blog.csdn.net/duan_zhihua/article/details/107594391