update

swadhinbiswas committed 2 years ago
0295326
1 parent c5d9031
commit 0295326
4 files changed
+30 -10
▼setup.py
+30-0
1
+from setuptools import setup
2
+
3
+setup(
4
+ name="Streamtape",
5
+ version="1.0.0",
6
+ description="Unofficial Streamtape API Wrapper for Python by Swadhin Biswas",
7
+ long_description=open("README.md", "r").read(),
8
+ long_description_content_type="text/markdown",
9
+ keywords="api, streamtape, video, hosting",
10
+ url="https://github.com/swadhinbiswas/Streamtape",
11
+ author="Swadhin Biswas",
12
+ author_email="[email protected]",
13
+ packages=["streamtape"],
14
+ install_requires=[
15
+ "requests",
16
+ ],
17
+ classifiers=[
18
+ "Development Status :: 5 - Production/Stable",
19
+ "Intended Audience :: Developers",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.6",
23
+ "Programming Language :: Python :: 3.7",
24
+ "Programming Language :: Python :: 3.8",
25
+ "Programming Language :: Python :: 3.9",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Operating System :: OS Independent"
28
+ ],
29
+ zip_safe=False,
30
+)
0
31
▼app/__init__.py → streamtape/__init__.py
+0-0
0
0
▼app/streamtape.py → streamtape/streamtape.py
+0-2
321
321
"""
322
322
url:str=f"{self.baseurl}file/getsplash?{self.login}&file={file_id}"
323
323
return self._request("GET",url)
324
-
325
-
326
324
▼test.py
+0-8
1
-x={'status': 200,
2
-'msg': 'OK',
3
- 'result': {'url': 'http://861481696.tapecontent.net/xfsproupload/iUtX1msYQjPIBnaf',
4
-'valid_until': '2024-04-26 21:46:06'}}
5
-
6
-
7
-y=x['result']['url']
8
-print(y)
9
0