fix: /sciencemag/cover (#6489)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user