{"id":19499674,"url":"https://github.com/apsl/page-size-check","last_synced_at":"2026-02-26T06:45:08.535Z","repository":{"id":57450283,"uuid":"153481332","full_name":"APSL/page-size-check","owner":"APSL","description":"An utility to check the size of your pages and resources used","archived":false,"fork":false,"pushed_at":"2019-05-15T15:37:58.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-07T02:18:17.508Z","etag":null,"topics":["harfile","python","python3","selenium","web"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/APSL.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-17T15:34:43.000Z","updated_at":"2024-01-19T10:57:51.000Z","dependencies_parsed_at":"2022-08-25T23:00:57.086Z","dependency_job_id":null,"html_url":"https://github.com/APSL/page-size-check","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Fpage-size-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Fpage-size-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Fpage-size-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Fpage-size-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/APSL","download_url":"https://codeload.github.com/APSL/page-size-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224019605,"owners_count":17242177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["harfile","python","python3","selenium","web"],"created_at":"2024-11-10T22:05:36.745Z","updated_at":"2026-02-26T06:45:08.507Z","avatar_url":"https://github.com/APSL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\nPage Size Check\n=========\n\nPage Size Check is an utility to check the size of pages from a sitemap and its resources parsering the HAR file of the\nrequest using Selenium and haralyzer. The execution of this utility produces some files to allow the user to make an\nanalysis of the number of requests and its size. The execution use ThreadPoolExecutor to launch the browsers in parallel.\n\nDependencies\n------------\n\n* Git.\n* Python 3.5 or higher, `pip`_ and virtualenvwrapper.\n* System requeriments in requirements-sys.txt\n\nInstallation with PyPI\n----------------------\n\n#. Installation ::\n\n    pip install page-size-check\n\n#. Download ::\n\n    - Firefox webdriver for selenium: geckodriver\n    - Browsermob-proxy\n\n#. Execution ::\n\n    page_size_check --sitemap_url=\"sitemap.url\" [--help]\n\n#. Output ::\n\n    - Summary tables: tables with summary info for each url and the total amount of results\n    - Resume urls file: a resume of the urls with the number of entries, the page size and the page load times\n    - Resources list file: a list of the resources on every page with its mimetype, size and load time\n    - Mimetype resources: a resume of the resources grouped by mimetype in each url of the sitemap\n\n\nInstallation with Docker\n------------------------\nIf you want to use Docker and avoid to install external dependencies just type::\n\n    docker run --rm  apsl/page-size-check --sitemap_url=http://www.example.com/sitemap.xml\n\nUsage\n-----\nAs was showned before, you can execute the script doing :code:`python page_size_check.py --help` to see all the\nparameters that you can set:\n\n--browsermob_server_path TEXT  Browsermob server path.\n--browsermob_server_port INTEGER  Browsermob server port.\n--firefox_driver_path TEXT     Firefox driver path.\n--sitemap_url TEXT             Sitemap to get urls.\n--threads INTEGER              Number of threads.\n--display_summary BOOLEAN      If true displays the results summary to the stdout.\n--generate_extra_csv BOOLEAN   If true generates extra csv with resume information\n--help                         Show this message and exit.\n\nContributing\n------------\n\nContributions are very welcome. Please open a `pull request`_ or `file an issue`_.\nTests will be ready as soon as posible, please ensure the coverage at least stays the same\nbefore you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"page-size-check\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`pip`: https://pypi.python.org/pypi/pip/\n.. _`pull request`: https://github.com/APSL/page-size-check/pulls\n.. _`file an issue`: https://github.com/APSL/page-size-check/issues\n.. _`MIT`: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Fpage-size-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsl%2Fpage-size-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Fpage-size-check/lists"}