File: search.markdown

package info (click to toggle)
python-diaspy 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 352 kB
  • sloc: python: 1,600; makefile: 149
file content (23 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#### `Search()` object

Searching is useful only if it comes to searching for users or tags.

----

##### `lookup_user()`

This method is used for telling a pod "Hey, I want this user searchable 
via you!"

##### `user()`

This method will return you a list of dictionaries containg data of 
users whose handle conatins query you have used.

##### `tags()`

This method will return you a `list` with with `str`'s (tag names). As 
first parameter it expects a `str` representing the search phrase. The 
second parameter `limit` is optional, it can be set to increase or 
decrease the maximum returned results. The default for the `limit` 
parameter is `10`.