Skip to main content

An extremely fast, professional-grade tool to find and extract all hyperlinks from web pages based on a search query.

Project description

linkgo

linkgo is a Python-based command-line tool designed to discover and extract links from web pages. It leverages DuckDuckGo Search to find initial URLs based on a query, then delves into those pages to gather all outbound links.

Features

  • DuckDuckGo Search Integration: Utilizes DDGS to find relevant starting URLs for your queries.
  • Comprehensive Link Extraction: Fetches web pages and parses their HTML content to extract all discoverable links.
  • Command-Line Interface: Supports direct queries and output file specification via command-line arguments.
  • Interactive Mode: Offers a user-friendly interactive prompt for dynamic searches.
  • Colorful Output: Features an aesthetic gradient banner and colorized messages for better readability.

Installation

  1. Clone the repository:

    git clone https://github.com/ghostescript/linkgo
    cd linkgo
    
  2. Create and activate a virtual environment: It's recommended to install dependencies in a virtual environment to avoid conflicts with system-wide packages.

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    

Usage

Interactive Mode

Simply run the script without any arguments:

python3 linkgo.py

The tool will then prompt you to enter your search query and an optional output file.

Command-Line Mode

Provide your search query directly. You can also specify an output file using the -o or --output flag.

Example: Search for "python programming" and print results to console

python3 linkgo.py "python programming"

Example: Search for "web scraping tutorials" and save results to a file

python3 linkgo.py "web scraping tutorials" -o scraped_links.txt

< https://github.com/ghostescript/linkgo >

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkgo-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linkgo-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file linkgo-0.1.0.tar.gz.

File metadata

  • Download URL: linkgo-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for linkgo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82c038a1fc4607c4e17c6ba6060fde06f325189ff88c875e73b88921d638aaf9
MD5 7b797a52f32de206ff21314c50f8413d
BLAKE2b-256 3d117c4e313a015de5116f3d7eda4dce03cd054020b9b2afc5db2027c0c29795

See more details on using hashes here.

File details

Details for the file linkgo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: linkgo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for linkgo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67392d4a8195777291992c921ecc065d288c2661e7cc3cdd7a09d48fd2af91bf
MD5 b0a61478c8a1b6ebc64b846c027b8336
BLAKE2b-256 4005d5bbb1464c810e4c3d1addb8b9f8383049df09417470a85349547c3f0752

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page