Project

ex_ua

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby API for ex.ua
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.9.0
>= 2.10.0
>= 2.5.0
>= 1.9.0

Runtime

>= 2.3.0
>= 0.10.0
>= 1.5.0
 Project Readme

Build Status

Description

ex_ua library gives you some API to access http://ex.ua/

Docs: http://rubydoc.info/github/Antti/ex_ua/master/frames

Install

gem install ex_ua

Example usage

require 'ex_ua'
base_categories = ExUA::Client.base_categories('ru') # Gives you array of all base categories for a given language
category = base_categories.first # Select first category (usually video)
sub_categories = category.categories # Select sub-categories of a category
example_video_category = sub_categories.first.categories.first
download_items = example_video_category.items # Here you'll have an array of download items in a given category with #load_uri

Search

require 'ex_ua'
page = 0
per_page = 20
categories = ExUA::Client.search('futurama', page, per_page)