Skip to content

Commit

Permalink
Added search usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shichao-an committed Apr 12, 2015
1 parent 4eb28db commit 0564b4c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ There are two commands ``115down`` and ``115up`` that come with this package.
Print help
~~~~~~~~~~

You can a comprehensive help message using the ``-h`` option:
You can print a comprehensive help message using the ``-h`` option:

::

Expand Down
17 changes: 17 additions & 0 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,23 @@ Delete the file or directory:
True
Search directories and files
----------------------------
You can search directories and files by passing the ``keyword`` to :meth:`u115.API.search`:
.. code-block:: python
>>> api.search('manga')
[<Directory: [WOLF][Mangaka-san][01-12+OVA01-06][GB][720P][END]>, <File: [WOLF][Mangaka-san][01][GB][720P].mp4>, ...]
By default, the search result limits to 30 items. To get more result, pass ``count`` to the methods:
.. code-block:: python
>>> api.search('.mp4', count=100)
Download files
--------------
Expand Down

0 comments on commit 0564b4c

Please sign in to comment.