Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 670 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 670 Bytes

A small Python 3 module that scans a page and returns dead links

Installation


git clone https://github.com/Fuchida/vamp.git

virtualenv --distribute --no-site-packages vamp -p /path/to/your/python3

. bin/activate

pip install -r requirements.txt

# Run in Debug mode
python vamp.py http://example.com

API aerial view

from vamp import Vamp

# Setup
crawler = Vamp('http://webpage.com')

# Scan a page or configured site
# if specific page is not specified, index page will be scanned
crawler.scan()

# When a dead link/s is found
>> {"http://example.com/hello.html":404}

# When no dead link/s are found
>> {}