disinfoRG / FbScraper

MIT License
3 stars 2 forks source link

Comment count root selector seems need to change #37

Open dieface opened 4 years ago

dieface commented 4 years ago
圖片

Tested with fb_post.py to update this article and get the error below: [ERROR] 2020-03-12 00:05:10 fbscraper.facebook: (condition='element_to_be_clickable', selector='.userContentWrapper [data-testid="UFI2CommentsCount/root"]', timeout=5) Cannot find element

Original selector='.userContentWrapper [data-testid="UFI2CommentsCount/root"]' seems not work and need to change

dieface commented 4 years ago

如果original selector失敗,就嘗試 find_element_by_link_text("則留言")