📚 Link Miner
Linkminer is a command-line tool that recursively crawls a website and downloads files of specified types (e.g., PDFs, videos, documents). Originally built to fetch KCSE past papers, it's now a general-purpose file scraper.
🚀 Features
- 🎯 Download specific file types (
.pdf,.mp4,.docx, etc.) - 🔁 Recursive crawling with configurable depth
- ⚙ Supports config files and CLI arguments
- 💾 Skips files that already exist
- 🎨 ASCII banner + colorized output for a better UX
📦 Installation
🔧 From source:
git clone https://github.com/skye-cyber/kcse-fetcher.git
cd kcse-fetcher
pip install .
OR
pip install linkminer
🧪 Usage
🔹 Basic (CLI only):
python -m kcse_fetcher https://example.com --types pdf mp4 --depth 2
🔹 Using a config file:
{
"url": "https://example.com",
"types": ["pdf", "mp4"],
"depth": 3,
"output": "downloads"
}
- Then Run:
python -m kcse_fetcher -c config.json
⚙ Options
Option Description url Starting URL to crawl --types File extensions to download --depth Max recursion depth (None = no limit) --output Output directory --config Path to JSON config file
🛠 Example Output
[i] Crawling: https://example.com
[i] File types: pdf, mp4
[i] Output dir: downloads
[i] Depth limit: 2
[✓] Downloaded: kcse_2021_english.pdf
[✓] Downloaded: kcse_2021_kiswahili.pdf
[•] Skipped (exists): kcse_2021_chemistry.pdf
📘 License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
See the LICENSE file for more details. See the LICENSE file for details.
💡 Author
Skye - Wambua
- Made with 💻 and ☕ in Kenya
Metadata
Release files for linkminer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linkminer-1.0.0.tar.gz | 46.3 kB | Without provenance | Details for linkminer-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linkminer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for linkminer-1.0.0-py3-none-any.whl |
Total release size: 80.9 kB
Release files / linkminer-1.0.0.tar.gz
| Download URL | linkminer-1.0.0.tar.gz |
|---|---|
| Size | 46.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
142b186433d7fd0ffccb5cf99b4ca46e14503800ff7fd72a0278467a8bd2c261
|
|
BLAKE2b-256 checksum How to use checksums |
2d03c76087ff404a4c571c68136e1d337772c9187335fffc6e552c3665d7e542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / linkminer-1.0.0-py3-none-any.whl
| Download URL | linkminer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebbcc6dfdc295097b965341f4db3126b629cf102465681e3ed21a274b1d68b13
|
|
BLAKE2b-256 checksum How to use checksums |
7dc61ea8e74479ab554e330c3197f9de5af605c59e6e794a8732601d672e7920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for linkminer 1.0.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.