超灬超 |
|
||
2018年7月26日
摘要:
from bs4 import BeautifulSoup html = """ 标题 从前有三个小姐妹,她们的名字是 , Lacie, Tillie; 她们生活在一个井的下面 ... ... 阅读全文
摘要:
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(... 阅读全文
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") ... 阅读全文
2018年7月14日
摘要:
https://rubyinstaller.org/downloads/ ruby windows安装地址 安装带devkit的这样就自带MSYS2 不然报错 success 不再报错 阅读全文
摘要:
左上角的仓鼠插件:我从网上找的资源 放到html里面就可以 博客园需要先申请js权限 基本能通过 如图 <object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/wi 阅读全文
2018年7月13日
摘要:
报错Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\ 需要将tessdata文件夹 放到C:\Users\Administrator\venv\py3spider 阅读全文
摘要:
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... 阅读全文
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") 阅读全文
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_... 阅读全文
2018年6月15日
摘要:
TypeError: can't pickle _thread.lock objects 分布式进程学习 中出现的错误 阅读全文
|
Copyright © 2024 超灬超
Powered by .NET 8.0 on Kubernetes |