FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TikTokAPI-Python/tests/utils.py at master · man62/TikTokAPI-Python · GitHub
man62
/
TikTokAPI-Python
Public
forked from
avilash/TikTokAPI-Python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TikTokAPI-Python
/
tests
/
utils.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 220 Bytes
Breadcrumbs
TikTokAPI-Python
/
tests
/
utils.py
Copy path
File metadata and controls
9 lines (7 loc) · 220 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
import
json
def
read_json_from_file
(
filepath
):
with
open
(
filepath
,
'r'
,
encoding
=
'utf-8'
)
as
json_file
:
data
=
json
.
load
(
json_file
)
if
type
(
data
)
is
str
:
return
json
.
loads
(
data
)
return
data
Back
|
FazBrowse Home
|
New Git URL