All Projects → hrbrmstr → Longurl

hrbrmstr / Longurl

Licence: other
ℹ️ Small R package for no-API-required URL expansion

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Longurl

Prestashop Clean Urls
Prestashop module. This override module allows to remove IDs from URLs
Stars: ✭ 87 (+190%)
Mutual labels:  url-shortener, url
Urlshorting
A simple but powerful URL shortener
Stars: ✭ 150 (+400%)
Mutual labels:  url-shortener, url
Url Shortener
Web application that will help you in shortening your url
Stars: ✭ 65 (+116.67%)
Mutual labels:  url-shortener, url
Urlhub
URL shortener web application based on the Laravel PHP Framework.
Stars: ✭ 217 (+623.33%)
Mutual labels:  url-shortener, url
node-url-shortener
URL Shortener in Base58 using Node.js, Express, Sequelize, Mocha and Bootstrap
Stars: ✭ 21 (-30%)
Mutual labels:  url, url-shortener
tall
Promise-based, No-dependency URL unshortner (expander) module for Node.js
Stars: ✭ 56 (+86.67%)
Mutual labels:  url, url-shortener
Laravel Short Url
A Laravel package to shorten urls
Stars: ✭ 127 (+323.33%)
Mutual labels:  url-shortener, url
Breviare
Small URL shortener made with the MERN Stack
Stars: ✭ 16 (-46.67%)
Mutual labels:  url, url-shortener
mnmlurl-extension
[DEPRECATED] 💁 Browser extension for Minimal URL - Modern URL shortener with support for custom alias & can be hosted even in GitHub pages
Stars: ✭ 21 (-30%)
Mutual labels:  url, url-shortener
trym
🔗 A modern URL shortener
Stars: ✭ 29 (-3.33%)
Mutual labels:  url, url-shortener
Mnmlurl
🔗 Minimal URL - Modern URL shortener with support for custom alias & can be hosted even in GitHub pages [DEPRECATED]
Stars: ✭ 311 (+936.67%)
Mutual labels:  url-shortener, url
Originr
Species origin data from the web in R
Stars: ✭ 13 (-56.67%)
Mutual labels:  rstats
Rmarkdown Website Tutorial
Tutorial for creating websites w/ R Markdown
Stars: ✭ 26 (-13.33%)
Mutual labels:  rstats
Geowaffle
Combining waffle plot with geofacet
Stars: ✭ 26 (-13.33%)
Mutual labels:  rstats
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: ✭ 25 (-16.67%)
Mutual labels:  rstats
Universal Url
WHATWG URL for Node & Browser.
Stars: ✭ 20 (-33.33%)
Mutual labels:  url
Ieeer
Search IEEE publications in R
Stars: ✭ 12 (-60%)
Mutual labels:  rstats
Goodshirt
R client to the Good Place Quotes API
Stars: ✭ 24 (-20%)
Mutual labels:  rstats
Gh Pages Url Shortener
Minimal URL shortener that can be entirely hosted on GitHub pages.
Stars: ✭ 924 (+2980%)
Mutual labels:  url-shortener
Blogr
Scripts + data to recreate analyses published on http://benjaminlmoore.wordpress.com and http://blm.io
Stars: ✭ 23 (-23.33%)
Mutual labels:  rstats

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Signed by Signed commit % Linux build Status Coverage Status cran checks CRAN status Minimal R Version License

longurl

Expand Short ‘URLs’

Description

Tools are provided to expand vectors of short URLs into long ‘URLs’. No ‘API’ services are used, which may mean that this operates more slowly than ‘API’ services do (since they usually cache results of expansions that every user of the service requests). You can setup your own caching layer with the ‘memoise’ package if you wish to have a speedup during single sessions or add larger dependencies, such as ‘Redis’, to gain a longer-term performance boost at the expense of added complexity.

What’s Inside The Tin

The following functions are implemented:

  • expand_urls: Expand a vector of (short) URLs using

Installation

install.packages("longurl", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/"))
# or
remotes::install_git("https://git.rud.is/hrbrmstr/longurl.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/longurl")
# or
remotes::install_gitlab("hrbrmstr/longurl")
# or
remotes::install_github("hrbrmstr/longurl")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(longurl)
library(magrittr)

# current version
packageVersion("longurl")
## [1] '0.3.3'
c(
  "http://t.co/D4C7aWYIiA",
  "1.usa.gov/1J6GNoW",
  "ift.tt/1L2Llfr",
  "bit.ly/1GPr5w5",
  "http://l.dds.ec/1da152x",
  "http://l.rud.is/seven",
  "qrp://not a valid url/"
) -> test_urls

expand_urls(test_urls) %>% 
  dplyr::select(orig_url, status_code, expanded_url) %>% 
  knitr::kable()
orig_url status_code expanded_url
http://t.co/D4C7aWYIiA 200 https://www.wired.com/2015/06/airlines-security-hole-grounded-polish-planes/
1.usa.gov/1J6GNoW 404 https://1.usa.gov/1J6GNoW
ift.tt/1L2Llfr 200 https://ifttt.com/applet_embeds/299814p/image?width=660&height=340
bit.ly/1GPr5w5 200 https://s3.amazonaws.com/features.ifttt.com/blog_images/Channels/Weebly+final+banner+with+IFTTT+logo.png
http://l.dds.ec/1da152x 200 http://l.dds.ec/1da152x
http://l.rud.is/seven 404 http://l.rud.is/seven
qrp://not a valid url/ NA NA

longurl Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 4 0.8 110 0.84 20 0.54 51 0.65
Rmd 1 0.2 21 0.16 17 0.46 27 0.35

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].