Created
April 3, 2020 18:34
-
-
Save ricealexander/19cf5cffe0f49923072fd0e9d963f3e6 to your computer and use it in GitHub Desktop.
Instructions for gathering URLs from CorePub's limited feed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CorePub is a SPA, so as we paginate through their feeds, our page doesn't reload. | |
// In the console, enter | |
const links = [] | |
// Navigate through each page in the feed. Each time, enter the following in the console | |
links.push( | |
...Array.from(document.querySelectorAll('.mobile-teaser-link'), link => link.href) | |
) | |
// Once you've collected all of the links from the feed, sort and copy the results | |
links.sort() | |
copy(links.join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment