The official Python client for www.isMyJsFucked.com


License
Other
Install
pip install imjf==0.1.3

Documentation

imjf-py

The official Python client for www.isMyJsFucked.com. This service is ideal for setting up quick and dirty smoke tests on your most important URLs.

Usage

ismyjsfucked determines if the JavaScript at a URL is broken. Returning False indicates that everything is ok. True indicates that at least one URL is confirmed for being broken. An IMJFException is raised when the state of the JavaScript isn't fully known, or the URL's status code implies failure, i.e., 4XX or 5XX. More information can be found at www.isMyJsFucked.com/api/.

>>> from imjf import ismyjsfucked
>>> ismyjsfucked('http://www.ismyjsfucked.com/tests/exception.html')
True
>>> ismyjsfucked('http://www.ismyjsfucked.com/tests/ok.html')
False
>>> urls = ['www.ismyjsfucked.com/tests/ok.html', 'www.ismyjsfucked.com/tests/exception.html']
>>> ismyjsfucked(urls) # returns `True`, because at least one URL is fucked
True

Installation

$ pip install imjf

Dependencies