Comments (1)
segmentfault的前端地址变成了https://segmentfault.com/channel/frontend
每个文章下面有含有图片也有不包含图片的,所以有的就有2个a标签,有的有1个a标签
选择器应该怎么写呢,我是下面这样的,但是是错的
var list = [...document.querySelectorAll('.news-list .news__item-info a:not([class$="news-img"])')]
var SfFeArticleList = await page.evaluate(() => {
var $ = window.$;
return Array.from($('.news-list .news__item-info').map((index, el) => {
const item = $(el).find('a[target=_blank]');
return {
href: SfUrl + item.attr("href"),
title: item.find('.news__item-title').text()
};
}));
})
from puppeteer-deep.
Related Issues (19)
- todo: web performance analyze use puppeteer HOT 1
- 请问下,puppeteer可以做阿里妈妈的登录模拟吗 HOT 5
- page.addScriptTag(options)的使用问题
- ES6阮老师的网站爬出来的只有loading和左边的目录了
- 你好 想问一下 puppeteer可以实现并发吗?
- awesome-puppeteer
- 图片有中文显示不出来。 HOT 1
- puppeteer 执行点击跳转后还能在跳转后的页面进行操作吗? HOT 1
- 掘金现在不支持email注册了 HOT 1
- 博主有联系方式吗?想谈合作~(海外IP代理方面的)
- todo: 爬虫爬取《es6标准入门》
- todo: 自动爬去SF文章,并提交到掘金 HOT 1
- centos 7 报错 HOT 5
- hi why Error: Failed to connect to chrome! HOT 3
- 关于trace.json HOT 1
- 不行 Chromium revision is not downloaded HOT 2
- 掘金的登录界面总是输入不了用户名和密码 HOT 5
- Chromium revision is not downloaded HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer-deep.