python 爬虫
DF26D
这个作者很懒,什么都没留下…
展开
-
python爬虫 bing壁纸
最近学习python爬虫,写了一个小例子.主要用来爬取bing壁纸. 源码如下: ‘’’ import requests from bs4 import BeautifulSoup import re import os from urllib.request import urlretrieve import time from email.header import Header from e...原创 2019-08-24 23:51:36 · 543 阅读 · 0 评论 -
python进程通信遇到的问题
学习python爬虫的时候,正好看到要用到分布式的案例。 于是自己直接拿来用了。 类似的代码网上一大堆。 先贴出代码 taskManager.py ‘’’ import random, time import queue #队列在py2中 'q' 大写 在py3中小写 from multiprocessing.managers import BaseManager #setp 1:建立tas...原创 2019-08-27 19:16:50 · 296 阅读 · 0 评论