Coder Social home page Coder Social logo

webfinger's Introduction

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Signed commit %

Minimal R Version License

webfinger

Discover Information About People or Other Entities on the Internet

Description

A good description goes here otherwise CRAN checks fail.

WIP

Definitely a WIP (drop some code for some credit!), and p(sherlocked) ~= 0.7 but it’s been a while since I made a public R package.

What’s Inside The Tin

The following functions are implemented:

Installation

remotes::install_github("hrbrmstr/webfinger")

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

Usage

library(webfinger)

# current version
packageVersion("webfinger")
## [1] '0.1.0'

Basic acct usage:

webfinger("acct:[email protected]")
## $subject
## [1] "[email protected]"
## 
## $aliases
## [1] "https://rud.is/b/author/hrbrmstr/"       "https://mastodon.social/@hrbrmstr"      
## [3] "https://mastodon.social/users/hrbrmstr"  "https://infosec.exchange/@hrbrmstr"     
## [5] "https://infosec.exchange/users/hrbrmstr"
## 
## $links
##                                     rel                      type                              href
## 1                                  self application/activity+json https://rud.is/b/author/hrbrmstr/
## 2 http://webfinger.net/rel/profile-page                 text/html https://rud.is/b/author/hrbrmstr/
## 
## attr(,"class")
## [1] "webfinger" "list"
webfinger("acct:[email protected]")
## $subject
## [1] "acct:[email protected]"
## 
## $aliases
## [1] "https://infosec.exchange/@hrbrmstr"      "https://infosec.exchange/users/hrbrmstr"
## 
## $links
##                                       rel                      type                                    href
## 1   http://webfinger.net/rel/profile-page                 text/html      https://infosec.exchange/@hrbrmstr
## 2                                    self application/activity+json https://infosec.exchange/users/hrbrmstr
## 3 http://ostatus.org/schema/1.0/subscribe                      <NA>                                    <NA>
##                                                   template
## 1                                                     <NA>
## 2                                                     <NA>
## 3 https://infosec.exchange/authorize_interaction?uri={uri}
## 
## attr(,"class")
## [1] "webfinger" "list"

Some endpoints are friendlier than others (but you should generally prepend acct: to be safe):

webfinger("[email protected]")
## $subject
## [1] "acct:[email protected]"
## 
## $aliases
## [1] "https://mastodon.social/@hrbrmstr"      "https://mastodon.social/users/hrbrmstr"
## 
## $links
##                                       rel                      type                                   href
## 1   http://webfinger.net/rel/profile-page                 text/html      https://mastodon.social/@hrbrmstr
## 2                                    self application/activity+json https://mastodon.social/users/hrbrmstr
## 3 http://ostatus.org/schema/1.0/subscribe                      <NA>                                   <NA>
##                                                  template
## 1                                                    <NA>
## 2                                                    <NA>
## 3 https://mastodon.social/authorize_interaction?uri={uri}
## 
## attr(,"class")
## [1] "webfinger" "list"

And, there exists ‘proxy’ webfinger services like this one for the bird site:

wf("acct:[email protected]", host = "twitter-webfinger.appspot.com")
## $subject
## [1] "[email protected]"
## 
## $links
##                           rel                                                                          href
## 1 http://webfist.org/spec/rel https://twitter-webfinger.appspot.com/user.json?uri=acct:[email protected]
## 
## attr(,"class")
## [1] "webfinger" "list"

webfinger Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 4 0.4 43 0.39 14 0.19 60 0.31
Rmd 1 0.1 12 0.11 22 0.31 38 0.19
SUM 5 0.5 55 0.50 36 0.50 98 0.50

clock Package Metrics for webfinger

webfinger's People

Contributors

hrbrmstr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.