Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

nickcharlton/urbanscraper

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Bumps [pygments.rb](https://github.com/pygments/pygments.rb) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/pygments/pygments.rb/releases)
- [Changelog](https://github.com/pygments/pygments.rb/blob/master/CHANGELOG.adoc)
- [Commits](pygments/pygments.rb@v2.1.0...v2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
5178453

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

urbanscraper

Build Status Code Climate Test Coverage Dependency Status

Urban Dictionary is great. But, it's missing an API. So, this provides one.

This was originally built to provide a data source for a an extension to the Mac quick launch tool, Alfred. It allowed you to request a definition which would then be returned back to you. Alfred 2 changed the way extensions worked, and so UrbanScraper gained a few new methods, allowing the workflow to give 'live' results.

The live version is hosted on Heroku. It's a simple Sinatra application, using Nokogiri for HTML/XML parsing. MiniTest and VCR are used for testing and mocking web requests respectively.

Usage

It is targeted against Ruby 2.0. You'll also need Bundler.

bundle install
bundle exec ruby app.rb

Tests can be run using rake:

rake test

License

Copyright (c) 2011 Nick Charlton. Code under the MIT license.

The content you access is under the conditions of the Urban Dictionary's Terms of Service and owned by those who submitted it.