虫言虫语 虫言虫语

分类 Python 下的文章

通过python解决文件中unicode转中文

in Python read (342474)
fneed = open('2222.txt',encoding="unicode_escape").read() fjson = open("b.txt", "w",encoding="utf-8&q...

给scrapy设置HTTP代理

in Python read (10312)
在scrapy项目文件下建立一个.py文件 填入以下信息:# Importing base64 library because we'll need it ONLY in case if the proxy we are going to use requires auth...

Python编写单线程爬虫

in Python read (18033)
#!/usr/bin/env/ python3 import re import urllib.request import os def picurl(url,path): if os.path.exists(path): print(p...
雷姆
拉姆