Skip to content

Commit

Permalink
Updated Changes
Browse files Browse the repository at this point in the history
- Changed README.rst
- Changed six requirement 1.13.0
- Fixed weird variable name
  • Loading branch information
Cyb3r-Jak3 committed Sep 12, 2020
1 parent 431ff84 commit 4ee61e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -22,7 +22,7 @@ Overview
The haralyzer module contains three classes for analyzing web pages based
on a HAR file. ``HarParser()`` represents a full file (which might have
multiple pages). ``HarPage()`` represents a single page from said file.
``HarEntry()`` represents an entry in a ``HarPage()`` there are are multiple entries per page.
``HarEntry()`` represents an entry in a ``HarPage()``, and there are are multiple entries per page.
Each ``HarEntry`` has a request and response that contains items such as the headers, status code, timings, etc

``HarParser`` has a couple of helpful methods for analyzing single entries
Expand Down
8 changes: 4 additions & 4 deletions haralyzer/assets.py
Expand Up @@ -136,12 +136,12 @@ def match_status_code(self, entry, status_code, regex=True):
:param status_code: ``str`` of status code to search for
:param regex: ``bool`` indicating whether to use a regex or string match
"""
har_date = HarEntry(entry)
entry_data = HarEntry(entry)
if regex:
return re.search(status_code,
str(har_date.response.status)) is not None
str(entry_data.response.status)) is not None
else:
return str(har_date.response.status) == status_code
return str(entry_data.response.status) == status_code

def create_asset_timeline(self, asset_list):
"""
Expand Down Expand Up @@ -634,7 +634,7 @@ def html_load_time(self):
return self._get_asset_load('html')


class HarEntry(MimicDict, object):
class HarEntry(MimicDict):
"""
An object that represent one entry in a HAR Page
"""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,3 +1,3 @@
cached-property
python-dateutil
six == 1.15.0
six >= 1.13.0
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,7 +8,7 @@

install_reqs = ['cached-property',
'python-dateutil',
"six == 1.15.0"]
"six >= 1.13.0"]

if sys.version_info < (3, 4):
install_reqs.extend([
Expand Down

0 comments on commit 4ee61e0

Please sign in to comment.