此间少年梦中游 发表于 2019-5-26 16:25:55

运行后报错,是不是解析问题.

Traceback (most recent call last):
File "D:/pycharm项目/spider_novel.py", line 124, in <module>
    main()
File "D:/pycharm项目/spider_novel.py", line 84, in main
    h1_soup = BeautifulSoup(html1,'html.parser')# 主页
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\bs4\__init__.py", line 245, in __init__
    elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()

xjy666 发表于 2019-5-26 16:38:50

liudihan 发表于 2019-5-26 19:57:45

厉害了

星稀 发表于 2019-5-26 20:04:46

不明觉厉

13836151437 发表于 2019-5-26 20:18:22

谢谢LZ无私奉献
!!!

glowrush 发表于 2019-5-26 20:48:17

先看为敬

荣耀 发表于 2019-5-27 01:17:09

借鉴学习理解{:10_256:}

CauchyBDS 发表于 2019-5-27 02:02:17

上车了,滴滴滴

乌奈哉 发表于 2019-5-27 13:21:03

真厉害,学的好快啊

th_gsb 发表于 2019-5-27 15:36:50

学习一下

Seawolf 发表于 2019-6-2 02:09:00

谢谢分享

ashou 发表于 2019-6-2 03:11:27

感谢分享

乌龟色的乌龟 发表于 2019-6-2 11:18:00

66666666666666

cc521 发表于 2019-6-2 14:18:11

{:9_218:}

sevn 发表于 2019-6-2 17:08:55

看看楼主的成果

此间少年梦中游 发表于 2019-6-2 17:40:40

在pycharm运行报错 :
UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 84 of the file D:/pycharm项目/fengzhuang.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

h1_soup = BeautifulSoup(html1)# 主页
Traceback (most recent call last):
File "D:/pycharm项目/fengzhuang.py", line 124, in <module>
    main()
File "D:/pycharm项目/fengzhuang.py", line 84, in main
    h1_soup = BeautifulSoup(html1)# 主页
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\bs4\__init__.py", line 245, in __init__
    elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()

takumi346 发表于 2019-6-2 21:12:06

太强了,希望能直接用

whz78 发表于 2019-6-2 23:44:56

从入门到高手,谢谢分享,也让小白学习一下。

guo408066634 发表于 2019-6-2 23:54:46

牛牛牛

sx1999 发表于 2019-6-5 12:39:38

6
页: 113 114 115 116 117 118 119 120 121 122 [123] 124 125 126 127 128 129 130 131 132
查看完整版本: 最终版【18禁】一只贼能爬动图的——黄虫。绅士和妹子都来看看吧!