我如何从< font>获得/刮擦数据。在html中标记
网站链接: https://www.jobup.ch/en/new/new-vacancies/
大家好,我正在上述工作网站上工作,从我想废除作业数据,但是工作URL在标签中,我尝试了其他方法来刮擦,但对我不起作用, 方法1:
jobs_soup.find_all('div', {'class':'Div-sc-1cpunnt-0'}).find('font').find('a', href = True)
方法2:
response.xpath("//div[@class = 'Div-sc-1cpunnt-0']/font/a")
我已经尝试过这两种方式,但它行不通, 如果有人帮助我,这将非常有帮助,谢谢
site Link: https://www.jobup.ch/en/new-vacancies/
Hi guys I am working on the above job site from where I want to scrap jobs data, but the job URL is in the tag, I have tried a different method to scrap but it does not work for me,
method 1:
jobs_soup.find_all('div', {'class':'Div-sc-1cpunnt-0'}).find('font').find('a', href = True)
Method-2:
response.xpath("//div[@class = 'Div-sc-1cpunnt-0']/font/a")
I have tried this both ways but it won't work,
If anyone help me It will be very helpful for, thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下代码是一个示例,如何从每个作业清单中获取所有信息。
输出:
The below code is an example how to grab all information from each job listing.
Output:
我没有时间测试它,但是我相信这将奏效
这是:
找到所有具有HREF的标签,该标签以/en/jobs///obs//obs/。
I don't have time to test it, but I believe this will work
What this is doing is:
Finding all a tags that have an href starting with /en/jobs/.