Skip to content

Commit 424ef82

Browse files
committed
Update README.rst
1 parent 036cd35 commit 424ef82

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Prerequisites
2424
Quickstart
2525
----------
2626

27+
GET PRICE LIST
28+
--------------
29+
2730
.. code-block:: python
2831
2932
>>> from pysmartprice.base import SmartPrice
@@ -61,6 +64,31 @@ Quickstart
6164
}
6265
6366
67+
SEARCH PRICE LIST
68+
-----------------
69+
70+
.. code-block:: python
71+
72+
>>> from pysmartprice.base import SmartPrice
73+
>>> smartprice = SmartPrice()
74+
75+
>>> smartprice.search('SAMSUNG')
76+
Out[4]: [<pysmartprice.results.SmartPriceResult at 0x102b05990>,
77+
<pysmartprice.results.SmartPriceResult at 0x100d36850>,
78+
<pysmartprice.results.SmartPriceResult at 0x1024129d0>,
79+
<pysmartprice.results.SmartPriceResult at 0x102412b10>,
80+
<pysmartprice.results.SmartPriceResult at 0x102412f90>,
81+
<pysmartprice.results.SmartPriceResult at 0x102412fd0>,
82+
<pysmartprice.results.SmartPriceResult at 0x102412e10>,
83+
<pysmartprice.results.SmartPriceResult at 0x102412d50>,
84+
<pysmartprice.results.SmartPriceResult at 0x102412c50>,
85+
...]
86+
87+
In [3]: len(s.search('SAMSUNG'))
88+
Out[3]: 1012
89+
90+
91+
6492
6593
Supported attributes
6694
--------------------

0 commit comments

Comments
 (0)