qelphybox / pornhub_api

Simple Pornhub API client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PornhubApi

Gem Version

Simple Pornhub API client

Please check documentation and schemas to explore possible responses

require 'pornhub_api'

# the simplest call 
PornhubApi.search

# adjust your search
PornhubApi.search(search: 'lana rhoades', thumbsize: 'small', ordering: 'mostviewed')

# All possible methods
PornhubApi.search
PornhubApi.stars
PornhubApi.stars_detailed
PornhubApi.video_by_id(id: 'ph5f59beb3df90a')
PornhubApi.is_video_active(id: 'ph5f59beb3df90a')
PornhubApi.categories
PornhubApi.tags(list: 'a')

Installation

Add this line to your application's Gemfile:

gem 'pornhub_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install pornhub_api

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/qelphybox/pornhub_api.

Roadmap

- Binary executable file
- News RSS feed requests

About

Simple Pornhub API client

License:MIT License


Languages

Language:Ruby 98.9%Language:Shell 1.1%