【第零周课程问题集】
9.写路径问题
------------------------------------------------
【第一周课程问题集】
◎ BeautifulSoup4问题集
2.编码输出问题
6.soup.select()尽量不使用完整selector
◎ pip 问题集
◎ 代理ip问题集
1.如何获取代理ip
◎ js加载问题
------------------------------------------------
【第二周课程问题集】
◎ MongoDB 问题集
◎ 爬虫报错问题集
1.断点详解
2.图片下载乱码
◎ 多进程问题集
------------------------------------------------
【第三周课程问题集】
------------------------------------------------
【第四周课程问题集】
◎ Django 问题集
◎ Semantic UI 问题集
>>>【课程相关的实用资源】
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/Plan-for-combating-master/week1/1_3/1_3answer_of_homework/main.py", line 77, in <module>
get_links(single_url)
File "C:/Users/Administrator/Desktop/Plan-for-combating-master/week1/1_3/1_3answer_of_homework/main.py", line 28, in get_links
get_detail_info(href)
File "C:/Users/Administrator/Desktop/Plan-for-combating-master/week1/1_3/1_3answer_of_homework/main.py", line 66, in get_detail_info
"sex": get_lorder_sex(sex.get("class"))
NameError: name 'get_lorder_sex' is not defined
老师我运行你得第一周第三节的课后作业的代码,怎么会出现这些信息,这是为什么呢
在第一章第二节课的时候运行出现
C:\Users\lenovo\AppData\Local\Programs\Python\Python35-32\python.exe C:/Users/lenovo/PycharmProjects/web/web.py
Traceback (most recent call last):
File "C:/Users/lenovo/PycharmProjects/web/web.py", line 4, in <module>
Soup=BeautifulSoup(wb_data,'lxml')
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35-32\lib\site-packages\bs4\__init__.py", line 165, in __init__
% ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
Process finished with exit code 1
这种情况不知道如何改进
第三节课的内容的疑惑
def get_attraction(url,data=None):
这个函数的参数里为什么要写data =None?
写和不写有什么区别么?
[thread1] Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2016-06-16T11:03:30.752+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
mac下安装mongdb出现如上问题,怎么解决?
谢谢