phantomas v1.10
This release of phantomas brings bug fixes and...
Python
Python library for phantomas is now available on PyPI.
import json
from phantomas import Phantomas
results = Phantomas(
url="http://example.com",
modules=['headers', 'requestsStats']
).run()
print('Generator: ' + results.get_generator()) # phantomas v1.10.0
print('\nMetrics: ' + json.dumps(results.get_metrics(), indent=True, sort_keys=True))
print('\nDomains: ' + json.dumps(results.get_offenders('domains'), indent=True))
# assertions
assert results.get_metric('notFound') == 0
assert results.get_metric('requests') < 5
All changes are listed below.
Changelog
Improvements
- #496 - Change the default viewport to 1366x768
- #489 - Use the latest engines
- #358 - phantomas library for Python
Bug fixes
- #499 - Make the date string compatible with windows file name restr... (by @vinvol)
- #495 - Upgrading ascii-table version (by @sorensen)
- #480 - Fix index of child node in getDOMPath (by @gmetais)
- #479 - imagesScaledDown should probably not concern SVG
- #478 - jQueryEventTriggers: error with jQuery 1.4.4
- #476 - Negative cache (by @gmetais)
- #467 - Scope problem with the spied version of eval() - introduce
--spy-eval
option
Internals
- #473 - Add tests for phantomas scope helpers