Eicky

Results 23 comments of Eicky

用正则或者jsoup解析都可以

直接find('h1')

> 我参照你的方法,soup.find(class_='item_title').h1.string > 这样获得的结果为 None soup.find(class_='item_title').find('h1').text

你直接安装python3和pip3 然后执行mm131.py文件就可以了,非常简单 其中需要引入一个bs4的库,执行 pip3 install bs4

@bloodsucker3011 please run pip install requests

@ACvsRM 多运行几次,他们有反爬虫,偶尔就会出这个问题

@wuhao747003943 我给你说一下步骤,先在vps上安装python3 和pip3 然后引入对应的相关库(pip install bs4和pip install requests),然后运行mm131.py文件就可以了

> > @ACvsRM 多运行几次,他们有反爬虫,偶尔就会出这个问题 > > 试了几十次,每次都是一闪而过……我都怀疑是不是我哪里安装或者哪个步骤有问题 你单独运行xinggan.py呢?

> > please run pip install requests > > ![pip](https://user-images.githubusercontent.com/28969855/59570370-fe5abe80-9064-11e9-8a46-d67951d83e83.PNG) > > did i do correct ? it still do nothing , sorry im not really familiar with how Python...

> sorry what i did is seem wrong could you provide a link ? or proper instruction how to install and make it work ? > > i current read...