码迷,mamicode.com
首页 >  
搜索关键字:urllib    ( 2222个结果
爬取百度图片
```python # -*- coding:utf-8 -*- #@Time : 2020-5-22 10:52 #@Author: Henry.ZHAO #@File : main.py # coding:utf-8 import re import requests from urllib i... ...
分类:其他好文   时间:2020-05-22 19:38:47    阅读次数:62
python中对url编码解码处理
解码 import urllib.parse url = "https://market.m.taobao.com/apps/market/content/index.html?contentId=210495552952&spm=a2141.7631544.t1.p602&scm=1007.114 ...
分类:编程语言   时间:2020-05-22 12:50:24    阅读次数:176
爬虫学习的基础篇
1.我们爬虫一般使用的模块为urllib和requests模块,现在requests基本代替了urllib2.爬虫的基本步骤 第一步:获取指定的url(要爬取的数据发起的请求url) 第二步:发起请求(根据请求方式(POST,GET)发起请求)response = requsts.get(url) ...
分类:其他好文   时间:2020-05-21 13:23:27    阅读次数:48
Python3调用Salt API
import urllib.request,urllib.parse,json class saltAPI(): def __init__(self): self.url = 'http://10.10.2.11:8000' self.data = {'username' : 'salt-api', ...
分类:编程语言   时间:2020-05-20 18:47:33    阅读次数:53
Python-网易音乐下载
# 爬取网易音乐 import requests from bs4 import BeautifulSoup import urllib.request headers = {"origin": "https://music.163.com", "referer": "https://music.1 ...
分类:编程语言   时间:2020-05-19 18:40:16    阅读次数:107
python使用pip安装模块出现ReadTimeoutError: HTTPSConnectionPool的解决方法
今天使用pip安装第三库时,有时会报错: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 使用 ...
分类:编程语言   时间:2020-05-17 15:56:24    阅读次数:76
测试组件 -RequestHandler
"""处理请求"""import reimport jsonimport requestsfrom jsonpath_rw import parsefrom urllib.parse import urlparsefrom conf import settingsfrom utils.LogHand ...
分类:其他好文   时间:2020-05-14 15:43:32    阅读次数:52
如何入门爬虫(基础篇)
一、爬虫入门Python爬虫入门一之综述Python爬虫入门二之爬虫基础了解Python爬虫入门三之Urllib库的基本使用Python爬虫入门四之Urllib库的高级用法Python爬虫入门五之URLError异常处理Python爬虫入门六之Cookie的使用Python爬虫入门七之正则表达式二、爬虫实战Python爬虫实战一之爬取糗事百科段子Python爬虫实战二之爬取百度贴吧帖子Python
分类:其他好文   时间:2020-05-14 01:46:17    阅读次数:85
python, 综合案例,应用tkinter, request建立天气预报查小程序
import tkinter as tk from tkinter import messagebox import urllib.request import requests import re import sys def inquire(): cityName = entry.get() # ...
分类:微信   时间:2020-05-12 13:46:01    阅读次数:91
python自动生成证件号
# Author:BeeLe# -*-coding:utf-8-*-# 生成身份证号码主程序import urllib.requestimport requestsfrom bs4 import BeautifulSoupimport reimport randomimport timeimport ...
分类:编程语言   时间:2020-05-10 23:21:40    阅读次数:88
2222条   上一页 1 ... 9 10 11 12 13 ... 223 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!