Skip to main content

🔗 Inlink Extractor

Inlink Extractor is a simple and lightweight Python CLI tool that extracts all internal links (<a href="">) and their associated anchor texts from a given webpage URL. It's useful for SEO audits, link analysis, and content crawling tasks.


🚀 Features

  • Extract all hyperlinks (<a> tags) from a webpage
  • Normalize and resolve relative URLs
  • Capture anchor texts
  • Export results directly to CSV
  • Simple and scriptable CLI interface

📦 Installation

Make sure you have Python 3.6+ and pip installed. Then install the tool from source:

pip install .

⚠️ You must be in the root directory of the project where setup.py is located.


🛠️ Usage

inlink-extractor <URL> [--output filename.csv]

✅ Example

inlink-extractor https://www.example.com/finance/personal-loan/

This will:

  • Crawl the given page
  • Extract all anchor links and their anchor texts
  • Save them to inlinks.csv by default

🔄 Custom Output File

inlink-extractor https://example.com --output example_links.csv

📁 Output Format (CSV)

Inlink Anchor Text
https://www.example.com/personal-loan Personal Loan
https://www.example.com/about-us About Us

💡 Use Cases

  • Internal link audits for SEO
  • Detecting orphan pages or weak linking
  • Scraping anchor text context
  • Competitive link structure analysis

📜 License

MIT License. Feel free to use, modify, and contribute.


🙌 Contributing

If you'd like to improve or add features, feel free to fork the repo and submit a pull request!


🧑‍💻 Author

Built by Amal Alexander — SEO & Python enthusiast.

Metadata

Release files for inlink-extractor 0.1.0

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

Source distribution (sdist)

Source distribution for inlink-extractor 0.1.0
File Size Uploaded Provenance Actions
inlink_extractor-0.1.0.tar.gz 3.5 kB Without provenance Details for inlink_extractor-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inlink-extractor 0.1.0
File Interpreter ABI Platform Actions
inlink_extractor-0.1.0-py3-none-any.whl Python 3 none any Details for inlink_extractor-0.1.0-py3-none-any.whl

Total release size: 7.0 kB

Security for inlink-extractor 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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