{"id":16571965,"url":"https://github.com/hrbrmstr/crux","last_synced_at":"2026-05-28T21:31:21.271Z","repository":{"id":141238073,"uuid":"173269847","full_name":"hrbrmstr/crux","owner":"hrbrmstr","description":"Identify the Crux of an Article","archived":false,"fork":false,"pushed_at":"2019-03-01T12:56:01.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T14:19:23.329Z","etag":null,"topics":["crux","r","rjava","rstats","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-01T09:04:05.000Z","updated_at":"2019-03-08T10:04:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e1a876f-2070-4212-99db-c4153a0764de","html_url":"https://github.com/hrbrmstr/crux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrbrmstr/crux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fcrux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fcrux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fcrux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fcrux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/crux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fcrux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33627934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["crux","r","rjava","rstats","web-scraping"],"created_at":"2024-10-11T21:25:52.846Z","updated_at":"2026-05-28T21:31:21.250Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: rmarkdown::github_document\neditor_options: \n  chunk_output_type: inline\n---\n```{r pkg-knitr-opts, include=FALSE}\nknitr::opts_chunk$set(collapse=TRUE, fig.retina=2, message=FALSE, warning=FALSE)\noptions(width=120)\n```\n\n[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/crux.svg?branch=master)](https://travis-ci.org/hrbrmstr/crux) \n[![Coverage Status](https://codecov.io/gh/hrbrmstr/crux/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/crux)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/crux)](https://cran.r-project.org/package=crux)\n\n# crux\n\nIdentify the Crux of an Article\n\n## Description\n\nMethods are provided to retrieve HTML content and return extracted\nmetadata and summarised plain text. Further methods are provided to classify\nURLs with or without making network calls. Based on \u003chttps://github.com/chimbori/crux\u003e.\n    \n## What's Inside The Tin\n\nThe following functions are implemented:\n\n- `classify_url`:\tClassify a URL with or without making network calls\n- `is_ad_image`:\tClassify a URL with or without making network calls\n- `is_likely_archive`:\tClassify a URL with or without making network calls\n- `is_likely_article`:\tClassify a URL with or without making network calls\n- `is_likely_audio`:\tClassify a URL with or without making network calls\n- `is_likely_binary_doc`:\tClassify a URL with or without making network calls\n- `is_likely_executable`:\tClassify a URL with or without making network calls\n- `is_likely_image`:\tClassify a URL with or without making network calls\n- `is_likely_video`:\tClassify a URL with or without making network calls\n- `is_web_scheme`:\tClassify a URL with or without making network calls\n- `summarise_url`:\tSummarise the contents at a URL to essential bits\n\n## Installation\n\n```{r install-ex, eval=FALSE}\ninstall.packages(c(\"cruxjars\", \"crux\"), repos = \"https://cinc.rud.is/\")\n```\n\n## Usage\n\n```{r lib-ex}\nlibrary(crux)\n\n# current version\npackageVersion(\"crux\")\n\n```\n\n```{r}\nstr(\n  summarise_url(\"http://time.com/5541738/joe-biden-backtracks-pence-praise-criticism/\"), 1\n)\n```\n\n```{r}\nstr(\n  classify_url(\"https://www.washingtonpost.com/powerpost/house-democrats-explode-in-recriminations-as-liberals-lash-out-at-moderates/2019/02/28/c3d163fe-3b87-11e9-a06c-3ec8ed509d15_story.html\")\n)\n```\n\n## crux Metrics\n\n```{r cloc, echo=FALSE}\ncloc::cloc_pkg_md()\n```\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). \nBy participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fcrux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Fcrux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fcrux/lists"}