python
gulicms
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 爬取京东商品信息
# -*- coding: utf-8 -*- import os import re import time from urllib.parse import urlencode import requests from lxml import etree import pymysql from time import strftime, gmtime # 方法二,从本地文件夹获取 def get_html(keywords, page): he = { 'accept':.原创 2020-09-22 11:05:16 · 895 阅读 · 0 评论 -
python 爬取淘宝商品信息
#!/usr/bin/python #-*-coding:utf-8-*- #淘宝商品比价 import requests import re import pymysql from time import strftime, gmtime def getHtmlText(url): try: header = { 'authority': 's.taobao.com', 'pragma': 'no-cache', 'cache-control': .原创 2020-09-22 11:01:11 · 1054 阅读 · 0 评论
分享