Extract outbound links from a URL into a CSV file from the command line.
Project description
outlink-extractor
A small Python tool to quickly extract outbound links from any given URL and export them into a CSV file.
Developed by: Amal Alexander
Email: amalalex95@gmail.com
Features
- Simple CLI command.
- Fetches a web page and parses all
<a>tags. - Filters only external (outbound) links.
- Exports results to
outlink.csv(or a custom file name) in the current directory.
Each row in the CSV contains:
href– Absolute URL of the outbound linkanchor_text– Cleaned anchor textrel– rel attribute value (if present)target– target attribute value (if present)
Installation
You can install it locally from the source:
pip install .
Or, if you have the ZIP file:
pip install outlink-extractor.zip
(Replace with the actual path to your ZIP.)
Usage
After installation, run from your terminal:
outlink-extractor https://example.com
This will create outlink.csv in the current directory.
You can also specify a custom output file:
outlink-extractor https://example.com -o my-outlinks.csv
Notes
- Requires Python 3.8+
- Uses
requestsandbeautifulsoup4under the hood. - Intended for quick SEO checks, audits, and outbound link analysis.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outlink_extractor-0.1.1.tar.gz.
File metadata
- Download URL: outlink_extractor-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aebd3b677502bfb73563b8c879d2003a441fac503038d1dc4972ee17c776cc1
|
|
| MD5 |
afac38dcd83127e73328ff10d161c4b4
|
|
| BLAKE2b-256 |
df97d09b715dc42ce8571f7bccafa5b3623b5238f1f77bbfc693ae2cc28cd81e
|
File details
Details for the file outlink_extractor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: outlink_extractor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e0d20d8124dd1e3addfdf0aeddfc55d54692cc2b41a04d8f38c1b83d55707bd
|
|
| MD5 |
289d797343d049baa86af29499abd94f
|
|
| BLAKE2b-256 |
b3d0b7c55b4f193436b4501e7252c17def50c18a4fc3a77cef344e56e422db77
|