admin管理员组

文章数量:1130349

很遗憾,部分数据有些问题,不过还是可以进行爬取出来的

先贴上源代码

#encoding=utf8
from selenium import webdriver
import re
from  bs4 import BeautifulSoup
from selenium.webdrivermon.keys import Keys
from selenium.webdrivermon.action_chains import ActionChains

import time


#使用selenium
# driver = webdriver.PhantomJS(executable_path="D:\\phantomjs.exe") #因为这里把phantomjs.exe 放在py35下了,所以可以不用设置

#1 使用selenium
driver = webdriver.PhantomJS()

很遗憾,部分数据有些问题,不过还是可以进行爬取出来的

先贴上源代码

#encoding=utf8
from selenium import webdriver
import re
from  bs4 import BeautifulSoup
from selenium.webdrivermon.keys import Keys
from selenium.webdrivermon.action_chains import ActionChains

import time


#使用selenium
# driver = webdriver.PhantomJS(executable_path="D:\\phantomjs.exe") #因为这里把phantomjs.exe 放在py35下了,所以可以不用设置

#1 使用selenium
driver = webdriver.PhantomJS()

本文标签: 爬虫实战入门好友内容