数据来源 https://www.sogou.com/labs/resource/cs.php介绍:来自搜狐新闻2012年6月—7月期间国内,国际,体育,社会,娱乐等18个频道的新闻数据,提供URL和正文信息格式说明:<doc><url>页面URL</url><docno>页面ID</docno>< ...
分类:
编程语言 时间:
2019-02-02 14:14:07
阅读次数:
310
Selenium Webdriver API(2) 15、获取元素基本信息 #启动IE浏览器driver = webdriver.Ie(executable_path="IEDriverServer")#打开搜狗driver.get("http://www.sogou.com")#获取“新闻”lin ...
数据文件:testdata.txtvisit||http://www.bing.comvisit||${e:\urls.txt}urls.txthttp://www.sohu.comhttp://www.sogou.comhttp://www.baidu.com#encoding=utf-8fromseleniumimportwebdriverimportredriver=webdriver.Ch
分类:
其他好文 时间:
2019-01-23 17:24:08
阅读次数:
227
数据文件分别为要访问的网址,输入框的定位表达式,搜索按钮的定位表达式,搜索关键字,断言关键字https://www.bing.com||//input[@id="sb_form_q"]||sb_form_go||"测试开发"||"测试开发"https://www.sogou.com||//input[@id="query&quo
分类:
数据库 时间:
2019-01-23 17:20:16
阅读次数:
228
之前Manjaro已经用了很久了,很多该配置的都已经配置好了,但是搜狗拼音在系统更新后突然无法使用 1检查 如下依赖 2.检查配置文件 3.发现一切配置没问题,此时输入 sogou-qimpanel ,发现输入法又可以用了 当然,如果输出日志有error,则进行排查 ...
分类:
编程语言 时间:
2019-01-19 20:07:08
阅读次数:
717
页面元素的内置属性 url = "http://www.baidu.com" # 访问sogou首页 driver.get(url) # 找到搜索输入框元素 searchBox = driver.find_element_by_id("kw") print dir(searchBox) print页 ...
分类:
其他好文 时间:
2018-12-30 02:48:46
阅读次数:
201
GET brand201811_v2/_search 方法一:查询数据源,及相关url的文章 { "query": { "bool": { "must": [ { "term": { "dSource": { "value": "news/sogou" } ... ...
分类:
其他好文 时间:
2018-12-13 19:16:05
阅读次数:
267
代码工具:jupyter 抓包工具:fiddle 1:搜狗页面内容爬取 1 import requests 2 3 url='https://www.sogou.com/' 4 response=requests.get( 5 url=url 6 ) 7 text=response.text 8 t ...
分类:
其他好文 时间:
2018-12-10 20:55:24
阅读次数:
148
网络开发的架构: C/S架构 客户端和服务端 (硬件:京东,淘宝,qq,微信,) (硬件:打印机) client: 客户端 享受服务端提供服务 server: 服务端 给客户提供给服务 B/S架构 浏览器和服务端 (chrom,火狐,360,sogou,IE) brower: 浏览器 (所有的B/S ...
分类:
其他好文 时间:
2018-12-01 21:54:41
阅读次数:
262
用于测试的网址:http://www.sogou.com调用API的实例代码:def isElementPresent(self,by,value): #从selenium.common.exceptions 模块导入 NoSuchElementException类 from selenium.co ...
分类:
其他好文 时间:
2018-11-22 18:17:50
阅读次数:
471