发布日期1970

2024-04-28 21:24:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从网站fairygodboss.com上删除,检索评论日期时遇到问题。。。在rvest包下运行以下命令时:

url<-read_html('https://fairygodboss.com/company-reviews/boston-consulting-group')
Review<-url %>% 
  html_nodes(xpath ='//p[@class="textColor6 w-700 p-b-10"]')%>%
  html_text()

我应该把不同的日期定为2017/2016年,但我的日期都定为1970年1月

请你帮我找出问题所在

我还尝试了使用bs4的Python,如下所示,我仍然到处都有:

import urllib
r = urllib.urlopen('https://fairygodboss.com/company-reviews/boston-consulting-group').read()

Tags: httpscomurlread网站htmlgroup评论