fix: /sciencemag/cover (#6489)

This commit is contained in:
Laam Pui
2020-12-23 17:46:52 +00:00
committed by GitHub
parent 405caf5fad
commit 98fe3707dc
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = async (ctx) => {
const pageResponse = await got.get(pageURL);
const $ = cheerio.load(pageResponse.data);
const items = $('section.journal-landing')
const items = $('[class^="view-highwire-blocks-hw-"]')
.map((_, elem) => {
// eg, www.sciencemag.org/sites/default/files/styles/240x300__4_3_/public/highwire/covers/scitransmed/12/532/-F1.medium.gif?itok=aOwRMF-8
const { id, vol, no } = $('div.media__icon > a > img', elem)