@@ -33,7 +33,8 @@ available in your [TechSpecs Dashboard](https://developer.dashboard.techspecs.io
3333
3434Set ` techspecs_key ` to your key value and ` techspecs_base ` to your base value.
3535
36- ### TechSpecs Search
36+ ### Basic Search
37+ #### Search for a device by specifying it's model name, version number or features
3738
3839``` python
3940import techspecs
@@ -58,6 +59,42 @@ print(search)
5859
5960```
6061
62+ ### Advanced Search
63+ #### List all products by brand, category and release date
64+ ``` python
65+ import techspecs
66+ 67+ # TechSpecs API Key
68+ techspecs_key = " techspecs_api_key"
69+ 70+ # TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
71+ techspecs_base = " a8TD3mkN49fhg2y"
72+ 73+ # enter the page number to fetch results from
74+ page = 1
75+ 76+ # type in the name of the brand you're looking for or leave this field empty to see results from all brands
77+ brand = [" Apple" ]
78+ 79+ # type in the name of the category you're looking for or leave this field empty to see results from all categories
80+ category = [" smartphone" ]
81+ 82+ # please provide a date range to narrow your search. Leave this field empty to fetch all results from all dates
83+ date = {
84+ " from" : " 2010年01月01日" , # YYYY-MM-DD
85+ " to" : " 2022年03月15日" # YYYY-MM-DD
86+ }
87+ 88+ # choose between "pretty" or "raw" mode for viewing response
89+ all_products = techspecs.products(techspecs_base, brand, category, date, page, techspecs_key, mode = ' pretty' )
90+ 91+ # print the search results
92+ print (all_products)
93+ ```
94+ 95+ ### Apple Machine ID Search
96+ ####
97+ 6198### Product Details
6299
63100``` python
@@ -115,37 +152,6 @@ categories = techspecs.categories(techspecs_base, techspecs_key, mode='pretty')
115152# print the list of all categories
116153print (categories)
117154
118- ```
119- ### List all products by brand, category and release date
120- ``` python
121- import techspecs
122- 123- # TechSpecs API Key
124- techspecs_key = " techspecs_api_key"
125- 126- # TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
127- techspecs_base = " a8TD3mkN49fhg2y"
128- 129- # enter the page number to fetch results from
130- page = 1
131- 132- # type in the name of the brand you're looking for or leave this field empty to see results from all brands
133- brand = [" Apple" ]
134155
135- # type in the name of the category you're looking for or leave this field empty to see results from all categories
136- category = [" smartphone" ]
137- 138- # please provide a date range to narrow your search. Leave this field empty to fetch all results from all dates
139- date = {
140- " from" : " 2010年01月01日" , # YYYY-MM-DD
141- " to" : " 2022年03月15日" # YYYY-MM-DD
142- }
143- 144- # choose between "pretty" or "raw" mode for viewing response
145- all_products = techspecs.products(techspecs_base, brand, category, date, page, techspecs_key, mode = ' pretty' )
146- 147- # print the search results
148- print (all_products)
149- ```
150156
151157
0 commit comments