我想要爬Facebook好友名稱
使用beautifulsoup沒有出現錯誤訊息但好友名稱也沒出來
具體程式碼在下面
from selenium import webdriver
import time,re
from bs4 import BeautifulSoup
driver=webdriver.Firefox()
driver.get("https://www.facebook.com")
username=driver.find_element_by_id("email")
username.send_keys("我的")
passwd=driver.find_element_by_id("pass")
passwd.send_keys("我的")
button=driver.find_element_by_id("loginbutton")
button. click()
我自己點到好友名單那
然後在執行下面
soup=BeautifulSoup(driver.page_source,"html5lib")
for block in soup.select('._60ri fsl fwb fcb a'):
print (block.text)
我是在jupyter上面執行,執行後沒出現錯誤訊息,但是也沒抓下任何資料
這是我要爬取目標
https://imgur.com/a/YVmrS7G
各位大大可以告訴我解決方法嗎謝謝