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 Provenance Actions
outlink_extractor-0.1.2.tar.gz 3.4 kB Without provenance Details for outlink_extractor-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 7.5 kB

Security for outlink-extractor 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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