Skip to main content

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 link
  • anchor_text – Cleaned anchor text
  • rel – 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 requests and beautifulsoup4 under the hood.
  • Intended for quick SEO checks, audits, and outbound link analysis.

Metadata

Release files for outlink-extractor 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outlink-extractor 0.1.2
File Size Uploaded
outlink_extractor-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for outlink-extractor 0.1.2
File Interpreter ABI Platform
outlink_extractor-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page