上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 67 下一页
摘要: ``` # 抓取华尔街见闻实时快讯 # https://wallstreetcn.com/live/global?from=navbar import requests import json header = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',... 阅读全文
posted @ 2019-05-03 23:45 hank-li 阅读(108) 评论(0) 推荐(0)
摘要: ``` # 抓取36氪快讯 # https://36kr.com/newsflashes import requests import json header = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agen... 阅读全文
posted @ 2019-05-03 23:31 hank-li 阅读(123) 评论(0) 推荐(0)
摘要: ``` dict_data = { "_id":1, name:"王五", age:55, gender:true } db.stu.insert(dict_data) db.stu.insert({_id:1,name:"李四",age:38,gender:true,like:"🐶🐶"}) d 阅读全文
posted @ 2019-05-02 17:36 hank-li 阅读(440) 评论(0) 推荐(0)
摘要: ``` import requests from bs4 import BeautifulSoup url = 'http://wz.sun0769.com/index.php/question/reply?page=0' headers = { 'User-Agent': "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWeb... 阅读全文
posted @ 2019-05-02 17:08 hank-li 阅读(143) 评论(0) 推荐(0)
摘要: ``` # 安装 pymongo pip install pymongo import pymongo try: # 1.链接mongod的服务 mongo_py = pymongo.MongoClient() # 2.库和表的名字; 有数据会自动建库建表 # 数据库 # db = mongo_py['six'] # 表 集合 # co... 阅读全文
posted @ 2019-05-02 17:06 hank-li 阅读(177) 评论(0) 推荐(0)
摘要: ``` df[df['列名'].isin([相应的值])] ``` 阅读全文
posted @ 2019-04-30 15:00 hank-li 阅读(5181) 评论(0) 推荐(0)
摘要: 报错: 解决方案: xlrd和xlwt处理的是xls文件,单个sheet最大行数是65535,如果有更大需要的,建议使用openpyxl函数,最大行数达到1048576。 如果数据量超过65535就会遇到:ValueError: row index was 65536, not allowed by 阅读全文
posted @ 2019-04-29 11:29 hank-li 阅读(16644) 评论(1) 推荐(3)
摘要: 问题代码: 报错: 解决: 阅读全文
posted @ 2019-04-29 10:34 hank-li 阅读(1309) 评论(0) 推荐(0)
摘要: 【导读】 本文由知名开源平台,AI技术平台以及领域专家:Datawhale,ApacheCN,AI有道和黄海广博士联合整理贡献,内容涵盖AI入门基础知识、数据分析挖掘、机器学习、深度学习、强化学习、前沿Paper和五大AI理论应用领域:自然语言处理,计算机视觉,推荐系统,风控模型和知识图谱。是你学习 阅读全文
posted @ 2019-04-29 09:38 hank-li 阅读(1066) 评论(0) 推荐(1)
摘要: # -*- coding:utf-8 -*- """ implicitly_wait():隐式等待 当使用了隐士等待执行测试的时候,如果 WebDriver没有在 DOM中找到元素,将继续等待,超出设定时间后则抛出找不到元素的异常 换句话说,当查找元素或元素并没有立即出现的时候,隐式等待将等待一段时 阅读全文
posted @ 2019-04-27 22:52 hank-li 阅读(6132) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 67 下一页