会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
超灬超
公告
日历
导航
博客园
首页
新随笔
新文章
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
2018年7月26日
beautifulsoup用法1
摘要: from bs4 import BeautifulSoup html = """ 标题 从前有三个小姐妹,她们的名字是 , Lacie, Tillie; 她们生活在一个井的下面 ... ...
阅读全文
posted @ 2018-07-26 17:16 超灬超
阅读(239)
评论(0)
推荐(0)
xpath的基本用法
摘要: from lxml import etree text = """ one two three four five """ html = etree.HTML(text) # 从文本读取 html = etree.parse('test.html', etree.HTMLParser()) result = etree.tostring(html) # bytes类型 # print(...
阅读全文
posted @ 2018-07-26 15:49 超灬超
阅读(353)
评论(0)
推荐(0)
2018年7月19日
python sep 打印的分隔符 python3网络爬虫书中错写为seq
摘要: import urllib.request as ur import urllib.error as ue try: response = ur.urlopen("https://cuiqingcai.com/index.html") except ue.HTTPError as e: print(e.reason, e.headers, e.code, sep="\n") ...
阅读全文
posted @ 2018-07-19 17:09 超灬超
阅读(447)
评论(0)
推荐(0)
2018年7月14日
关于ruby安装在windows gem install redis-dump 报错:MSYS2 could not be found
摘要: https://rubyinstaller.org/downloads/ ruby windows安装地址 安装带devkit的这样就自带MSYS2 不然报错 success 不再报错
阅读全文
posted @ 2018-07-14 10:43 超灬超
阅读(1918)
评论(0)
推荐(0)
关于仓鼠插件
摘要: 左上角的仓鼠插件:我从网上找的资源 放到html里面就可以 博客园需要先申请js权限 基本能通过 如图 <object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/wi
阅读全文
posted @ 2018-07-14 08:30 超灬超
阅读(819)
评论(3)
推荐(1)
2018年7月13日
tesserocr报错 Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\
摘要: 报错Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\ 需要将tessdata文件夹 放到C:\Users\Administrator\venv\py3spider
阅读全文
posted @ 2018-07-13 18:03 超灬超
阅读(2586)
评论(0)
推荐(0)
pyhton 采用无头模式不打开浏览器访问网址
摘要: import requests import selenium import wheel from selenium import webdriver from selenium.webdriver.firefox.options import Options as FOptions from selenium.webdriver.chrome.options import Options as...
阅读全文
posted @ 2018-07-13 16:00 超灬超
阅读(1404)
评论(0)
推荐(0)
2018年6月30日
python36通过将方法作为参数传入生成Thread对象 target不能带括号 否则就会由主线程执行
摘要: loop_thread = Thread(target=loop_runner, args=(10,), name="LOOP THREAD") loop_thread = Thread(target=loop_runner(), args=(10,), name="LOOP THREAD")
阅读全文
posted @ 2018-06-30 09:32 超灬超
阅读(1150)
评论(0)
推荐(0)
2018年6月21日
python爬虫开发与项目实践一书 爬取盗墓笔记 其中的json_dump报错问题
摘要: # encoding utf-8 将wb模式改为b模式就不会报错的 环境python36 import requests import json from bs4 import BeautifulSoup user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' headers = {'User-Agent': user_...
阅读全文
posted @ 2018-06-21 18:00 超灬超
阅读(229)
评论(0)
推荐(0)
2018年6月15日
TypeError: can't pickle _thread.lock objects
摘要: TypeError: can't pickle _thread.lock objects 分布式进程学习 中出现的错误
阅读全文
posted @ 2018-06-15 10:34 超灬超
阅读(5672)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
博客园
© 2004-2026
浙公网安备 33010602011771号
浙ICP备2021040463号-3