超灬超  
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2018年7月26日

摘要: from bs4 import BeautifulSoup html = """ 标题 从前有三个小姐妹,她们的名字是 , Lacie, Tillie; 她们生活在一个井的下面 ... ... 阅读全文
posted @ 2018-07-26 17:16 超灬超 阅读(232) 评论(0) 推荐(0) 编辑
 
摘要: 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 超灬超 阅读(337) 评论(0) 推荐(0) 编辑

2018年7月19日

摘要: 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 超灬超 阅读(432) 评论(0) 推荐(0) 编辑

2018年7月14日

摘要: https://rubyinstaller.org/downloads/ ruby windows安装地址 安装带devkit的这样就自带MSYS2 不然报错 success 不再报错 阅读全文
posted @ 2018-07-14 10:43 超灬超 阅读(1890) 评论(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 超灬超 阅读(811) 评论(3) 推荐(1) 编辑

2018年7月13日

摘要: 报错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) 编辑
 
摘要: 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 超灬超 阅读(1378) 评论(0) 推荐(0) 编辑

2018年6月30日

摘要: 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 超灬超 阅读(1137) 评论(0) 推荐(0) 编辑

2018年6月21日

摘要: # 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 超灬超 阅读(225) 评论(0) 推荐(0) 编辑

2018年6月15日

摘要: TypeError: can't pickle _thread.lock objects 分布式进程学习 中出现的错误 阅读全文
posted @ 2018-06-15 10:34 超灬超 阅读(5456) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页