chore: update Python syntax check workflow and add browser helper script
This commit is contained in:
18
get_urls.js
Normal file
18
get_urls.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// Execute this in your browser console on a patreon page.
|
||||
|
||||
let urls = [];
|
||||
|
||||
const target = temp1;
|
||||
|
||||
for (const child of target.children) {
|
||||
try {
|
||||
const url = child.children[0].children[0].children[0].children[0].children[0].children[0].children[1].children[0].children[0].children[0].children[0].children[0].children[0].children[0].href
|
||||
urls.push(url);
|
||||
} catch (error) {
|
||||
console.error('Error occurred while extracting URL (expected');
|
||||
}
|
||||
}
|
||||
|
||||
console.log(urls);
|
||||
|
||||
// Now you can press "Copy Object" when you rightclick on the output of the console log above.
|
||||
Reference in New Issue
Block a user