Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 737280e

Browse files
Update and rename search.py to basic_search.py
1 parent 100ad9e commit 737280e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎examples/search.py‎ renamed to ‎examples/basic_search.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
import json
33

44
# TechSpecs API Key
5-
key = "techspecs_api_key"
5+
techspecs_key = "techspecs_api_key"
66

77
# TechSpecs base https://apis.dashboard.techspecs.io/{techspecs_base}
8-
base = 'a8TD3mkN49fhg2y'
8+
techspecs_base = 'a8TD3mkN49fhg2y'
99

1010
query = {
1111
'keyword': 'iPhone 13', # product name or version number to search
1212
'category': 'all', # product category to search
1313
}
1414

1515
# choose between "pretty" or "raw" mode for viewing response
16-
search = techspecs.search(base, query, key, mode='pretty')
16+
response = techspecs.search(base, query, key, mode='pretty')
1717

1818
# print the search results
19-
print(search)
19+
print(response)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /