Skip to content

Commit 699df17

Browse files
committed
Update action.ts
1 parent 5fd3309 commit 699df17

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/action.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ const document = new dom.DOMParser().parseFromString(
1515
'text/html'
1616
)
1717

18-
console.log('last_page:', new URL(document.body.querySelector('.section-container .section-content .pagination .pagination-last a')?.attributes.getNamedItem('href')?.value!, 'https://feedback.minecraft.net').searchParams.get('page'))
19-
console.log('items:', document.body.querySelectorAll('.section-container .section-content .article-list .article-list-item a'))
18+
const pages = new URL(document.body.querySelector('.section-container .section-content .pagination .pagination-last a')?.attributes.getNamedItem('href')?.value!, 'https://feedback.minecraft.net').searchParams.get('page')
19+
20+
console.log('last_page:', pages)
21+
22+
document.body.querySelectorAll('.section-container .section-content .article-list .article-list-item a').forEach((element) => {
23+
console.log(element.innerHTML)
24+
})
2025

2126
// https://feedback.minecraft.net/hc/en-us/sections/360002267532-Snapshot-Information-and-Changelogs
2227
// https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs

0 commit comments

Comments
 (0)