{"id":32171622,"url":"https://github.com/bersegosx/exparic","last_synced_at":"2025-10-21T17:54:26.585Z","repository":{"id":62429254,"uuid":"163753344","full_name":"bersegosx/exparic","owner":"bersegosx","description":"Web parser via yaml config","archived":false,"fork":false,"pushed_at":"2019-01-15T21:33:19.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T00:43:50.981Z","etag":null,"topics":["crawler","parser","yaml-configuration"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bersegosx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-01T17:16:16.000Z","updated_at":"2019-01-15T21:33:21.000Z","dependencies_parsed_at":"2022-11-01T20:01:40.289Z","dependency_job_id":null,"html_url":"https://github.com/bersegosx/exparic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bersegosx/exparic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bersegosx%2Fexparic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bersegosx%2Fexparic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bersegosx%2Fexparic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bersegosx%2Fexparic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bersegosx","download_url":"https://codeload.github.com/bersegosx/exparic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bersegosx%2Fexparic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280308477,"owners_count":26308492,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["crawler","parser","yaml-configuration"],"created_at":"2025-10-21T17:54:20.669Z","updated_at":"2025-10-21T17:54:26.580Z","avatar_url":"https://github.com/bersegosx.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exparic\n\n[![Version][shield-version]][hexpm]\n[![License][shield-license]][hexpm]\n\n\u003e Web parser with yaml and css rules\n\n## Installation\n\nThe package can be installed by adding `exparic` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:exparic, \"~\u003e 0.1.2\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\n# run parser and wait for a result\niex(1)\u003e r = Exparic.parse(Path.expand(\"./site_config.yaml\"))\n\n# or every parsed result will be sent via message\niex(1)\u003e Exparic.parse_single(Path.expand(\"./site_config.yaml\"), self())\n```\n\n## Examples\n\n### Weather parser (https://pogoda.e1.ru/)\n\n```yaml\nparser:\n  name: e1_pogoda\n  init:\n    url: \"https://pogoda.e1.ru/\"\n    step: detail_page\n\n  steps:\n    - name: detail_page\n      fields:\n        - temperature:\n            selector: css\n            value: \"body \u003e div.wrapper \u003e div.content-holder.cols2 \u003e div \u003e div \u003e div.today-panel.js-today-panel \u003e div \u003e div \u003e div.today-panel__info__main \u003e div.today-panel__info__main__item._first \u003e div \u003e span.value \u003e span.value__main::text\"\n            filters:\n              - strip\n              - \"replace::−,-\"\n              - int\n\n        - temperature_feeling_as:\n            selector: css\n            value: \"body \u003e div.wrapper \u003e div.content-holder.cols2 \u003e div \u003e div \u003e div.today-panel.js-today-panel \u003e div \u003e div \u003e div.today-panel__info__main \u003e div.today-panel__info__main__item._first \u003e div \u003e span.value-feels_like \u003e span.value-feels_like__number::text\"\n            filters:\n              - strip\n              - \"index::0,3\"\n              - \"replace::−,-\"\n              - \"replace::°,\"\n              - int\n\n        - atm_pressure:\n            selector: css\n            value: \"body \u003e div.wrapper \u003e div.content-holder.cols2 \u003e div \u003e div \u003e div.today-panel.js-today-panel \u003e div \u003e div \u003e div.today-panel__info__main \u003e div.today-panel__info__main__item._first \u003e dl:nth-child(3) \u003e dt::text\"\n            filters:\n              - strip\n\n        - humidity:\n            selector: css\n            value: \"body \u003e div.wrapper \u003e div.content-holder.cols2 \u003e div \u003e div \u003e div.today-panel.js-today-panel \u003e div \u003e div \u003e div.today-panel__info__main \u003e div.today-panel__info__main__item._first \u003e dl:nth-child(4) \u003e dt::text\"\n            filters:\n              - strip\n```\n\nWill be parsed into:\n\n```elixir\n%{\n  \"atm_pressure\" =\u003e \"735 мм\",\n  \"humidity\" =\u003e \"82%\",\n  \"temperature\" =\u003e -14,\n  \"temperature_feeling_as\" =\u003e -18\n}\n```\n\n[shield-version]:   https://img.shields.io/hexpm/v/exparic.svg\n[shield-license]:   https://img.shields.io/hexpm/l/exparic.svg\n[hexpm]:            https://hex.pm/packages/exparic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbersegosx%2Fexparic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbersegosx%2Fexparic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbersegosx%2Fexparic/lists"}