![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
gulicms
这个作者很懒,什么都没留下…
展开
-
python 爬取京东商品信息
# -*- coding: utf-8 -*-import osimport reimport timefrom urllib.parse import urlencodeimport requestsfrom lxml import etreeimport pymysqlfrom time import strftime, gmtime# 方法二,从本地文件夹获取def get_html(keywords, page): he = { 'accept':.原创 2020-09-22 11:05:16 · 772 阅读 · 0 评论 -
python 爬取淘宝商品信息
#!/usr/bin/python #-*-coding:utf-8-*- #淘宝商品比价import requestsimport reimport pymysqlfrom time import strftime, gmtimedef getHtmlText(url): try: header = { 'authority': 's.taobao.com', 'pragma': 'no-cache', 'cache-control': .原创 2020-09-22 11:01:11 · 952 阅读 · 0 评论