Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

GSA/sitelink_generator

Repository files navigation

Sitelink Generator

Search.gov powers the search box on 1,500 government websites.

This sitelink generator "decorates" organic web results to provide additional, value-added links to help searchers find what they're looking for.

See the sample results page below that shows sitelink-generated links for EDGAR filings for a search on apple on SEC.gov.

Sitelink-generated links for EDGAR filings on SEC.gov

Installation

Add sitelink_generator to your Gemfile and bundle install:

gem 'sitelink_generator'

Available Generators

Available generators include:

Usage

require 'sitelink_generator'

url = 'http://www.sec.gov/Archives/edgar/data/1577552/000119312514184994/d709111df1.htm'
SitelinkGenerator::SecEdgar.generate url
#=> [{:title=>"Full Filing",
#     :url=>"http://www.sec.gov/Archives/edgar/data/1577552/0001193125-14-184994-index.htm"},
#    {:title=>"Most Recent Filings for this Company",
#     :url=>"http://www.sec.gov/cgi-bin/browse-edgar?CIK=1577552&Find=Search&action=getcompany&owner=exclude"}]

Supported Ruby Versions

  • Ruby 2.1

Feedback

If you think you found a bug in SitelinkGenerator, you can submit an issue.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy