skip to navigation
skip to content

Not Logged In

existence 0.2.0

Checks static .html files for bad links

Latest Version: 0.2.6

existence
=========

Recursively scans directories for static html files for bad or empty links. See
[here]http://www.ericcarmichael.com/writing-my-first-python-package.html why I wrote this, I hate missing details!

# Example bad or empty links

```html
Empty
Empty
Any bad link will fail, this one is missing http://
```

# Usage

## Command line

> existence /path/to/dir
Checking links...
57 of 57
All of your links exist!

## Python

```python
>>> from existence import scan
>>> scan("/path/to/dir")
[]
>>> scan("/path/to/an/error")
[('None', '/path/to/an/error/index.html', 121), ('non-existant.html', '/path/to/an/error/other.html', 22)]

# Returns list of tuples: [(url, file_name, line_number)]
```

# Progress bar

To enable the progress bar `pip install progressbar==2.3`


# Running tests

> python -m unittest discover  
File Type Py Version Uploaded on Size
existence-0.2.0.zip (md5) Source 2014-04-18 5KB
  • Downloads (All Versions):
  • 76 downloads in the last day
  • 380 downloads in the last week
  • 1375 downloads in the last month