摘要: #coding: utf-8 #来自转载 地址忘记了import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image imp 阅读全文
posted @ 2020-07-10 17:15 文强123 阅读(140) 评论(0) 推荐(0) 编辑
摘要: selenium(Java)WebDriverWait等待机制 //标题是不是“百度一下,你就知道”18 new WebDriverWait(driver,5).until(ExpectedConditions.titleIs("百度一下,你就知道"));19 //标题是不是包含“百度一下”20 n 阅读全文
posted @ 2020-03-08 01:52 文强123 阅读(301) 评论(0) 推荐(0) 编辑
摘要: import requests # 创建会话s = requests.Session() # 登录要请求的地址,url = "http://www.jokeji.cn/user/c.asp"# 登录所需要的get参数# 通过抓包的到需要传递的参数data = { 'u': '17312345678' 阅读全文
posted @ 2019-11-06 23:21 文强123 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 淘宝天猫商品抓取 分类: python 数据来源 --TTyb 2017-11-11 858 1833 本文基于 360 浏览器查看源码, python3.4 编码 ,爬虫基础需要学习的请看 爬虫教程。 淘宝天猫的网页反爬虫很严重,存在大量的 验证码 、 登陆提示 、 浏览限制 等等机制,但是毕竟一 阅读全文
posted @ 2019-11-06 21:35 文强123 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: 1、 # -*- coding: utf-8 -*-"""Created on Thu Apr 25 10:30:26 2019 @author: Office"""import urllib.request #需要爬取的网站url = "http://www.baidu.com/" #respon 阅读全文
posted @ 2019-10-14 00:33 文强123 阅读(603) 评论(0) 推荐(0) 编辑
摘要: file:///C:/Users/wqq/Desktop/%E5%B0%8F%E6%B8%B8%E6%88%8F.html 阅读全文
posted @ 2019-10-12 00:23 文强123 阅读(308) 评论(0) 推荐(0) 编辑
摘要: # coding : utf-8 import tkinter import requests import time import json import os import re import random import pandas as pd from bs4 import Beautifu 阅读全文
posted @ 2019-09-30 01:07 文强123 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 1.基础窗口测试 创建 test.py 文件 import tkinter as tkwindow = tk.Tk()#创建一个窗口window.title('测试窗口')window.geometry('300x100')#窗口大小 text = tk.Text(window)text.inser 阅读全文
posted @ 2019-09-30 00:19 文强123 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 转载此处 Unix常用命令 (一)基本命令 命令格式: 命令 参数 1.ls 显示文件名,等同于dos下dir命令 命令格式:ls [option] file option: -l 显示详细列表 域1 :文件类型和文件权限 域2 :文件连接数 域3 :文件所有者名字 域4 :文件用户组名字 域5 : 阅读全文
posted @ 2019-09-26 22:48 文强123 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 转载此处 tkinter模块常用参数(python3) 1、使用tkinter.Tk() 生成主窗口(root=tkinter.Tk()) root.title('标题名') 修改框体的名字,也可在创建时使用className参数来命名;root.resizable(0,0) 框体大小可调性,分别表 阅读全文
posted @ 2019-09-26 22:08 文强123 阅读(515) 评论(0) 推荐(0) 编辑