Guides
How to get links out of the places they hide — and what each method cannot do. Every code example and formula here was run against the environment named alongside it.
Python, JavaScript, regular expressions and browser workflows.
- Code and automation
How to Extract and Copy Links in Chrome
What Chrome can do on its own, a bookmarklet you can read before you use it, and an honest look at when an extension is worth the permissions it asks for.
Read the guide - Code and automation
How to Extract URLs with Regex
Patterns that work, measured failures from the ones that do not, and a clear account of why no regular expression can fully validate a URL.
Read the guide - Code and automation
How to Extract Webpage Links with JavaScript
Two lines in the browser console give you every link on the page — including the ones built by JavaScript that a crawler cannot see. Plus how to get anchor text, rel values and a downloadable file.
Read the guide - Code and automation
How to Extract URLs from Text Using Python
A working extractor in about thirty lines — find candidates, trim punctuation without breaking balanced brackets, then validate with urlparse rather than trusting the pattern.
Read the guide