本实例实现了抓取捧腹网中存储于html中的笑话数据(非JSON数据) 通过浏览器相关工具发现捧腹网笑话页面的数据存储在HTML页面而非json数据中,因此可以直接使用soup.select()方法来抓取数据,具体实现代码如下: import requests from bs4 import BeautifulSoup restr = '' for j in range(1,51): #一共抓取50个页面的数据 html = 'https://www.pengfu.com/xiaohua_'+st…
ssh://root@192.168.33.12:22/root/anaconda3/bin/python3 -u /www/python3/maoyantop100/meishi_selenium.py /root/anaconda3/lib/python3./site-packages/selenium/webdriver/phantomjs/webdriver.py:: UserWarning: Selenium support for PhantomJS has been depreca…