abstract-webtools 0.1.6.97__py3-none-any.whl → 0.1.6.99__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- abstract_webtools/k2s_downloader.py +4 -3
- {abstract_webtools-0.1.6.97.dist-info → abstract_webtools-0.1.6.99.dist-info}/METADATA +1 -1
- {abstract_webtools-0.1.6.97.dist-info → abstract_webtools-0.1.6.99.dist-info}/RECORD +5 -5
- {abstract_webtools-0.1.6.97.dist-info → abstract_webtools-0.1.6.99.dist-info}/WHEEL +0 -0
- {abstract_webtools-0.1.6.97.dist-info → abstract_webtools-0.1.6.99.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,8 @@ from abstract_webtools import *
|
|
14
14
|
DOWNLOAD_DIR = os.path.abspath("./downloads")
|
15
15
|
os.makedirs(DOWNLOAD_DIR, exist_ok=True)
|
16
16
|
class K2SDownloader:
|
17
|
-
def __init__(self):
|
17
|
+
def __init__(self,env_path=None):
|
18
|
+
self.env_path = env_path
|
18
19
|
self.session = requests.Session()
|
19
20
|
self.session.headers.update({
|
20
21
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
|
@@ -29,8 +30,8 @@ class K2SDownloader:
|
|
29
30
|
return webdriver.Chrome(options=options)
|
30
31
|
|
31
32
|
def login(self):
|
32
|
-
userName = get_env_value('userName')
|
33
|
-
passWord = get_env_value('passWord')
|
33
|
+
userName = get_env_value('userName',path=self.env_path)
|
34
|
+
passWord = get_env_value('passWord',path=self.env_path)
|
34
35
|
|
35
36
|
self.driver.get("https://k2s.cc/auth/login")
|
36
37
|
time.sleep(3)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: abstract_webtools
|
3
|
-
Version: 0.1.6.
|
3
|
+
Version: 0.1.6.99
|
4
4
|
Summary: Abstract Web Tools is a Python package that provides various utility functions for web scraping tasks. It is built on top of popular libraries such as `requests`, `BeautifulSoup`, and `urllib3` to simplify the process of fetching and parsing web content.
|
5
5
|
Home-page: https://github.com/AbstractEndeavors/abstract_essentials/tree/main/abstract_webtools
|
6
6
|
Author: putkoff
|
@@ -6,7 +6,7 @@ abstract_webtools/big_user_agent_list.py,sha256=5ZkrUWmfzYL5yaULREslh9ZiRQeITbSj
|
|
6
6
|
abstract_webtools/domain_identifier.py,sha256=AvWlGD7C19rySa_J_Brxi3kz43LMWvGsshuuZNg7MvI,3320
|
7
7
|
abstract_webtools/extention_list.py,sha256=gRSO4nMbuuXDYzd-ss4s64sS80ZHmUoazMCpgoKG5vE,4884
|
8
8
|
abstract_webtools/find_dirs.py,sha256=BlE4ruzMABqmv03NcutZ1j5N3pCc-Q4uNEAMpNolZCQ,2609
|
9
|
-
abstract_webtools/k2s_downloader.py,sha256=
|
9
|
+
abstract_webtools/k2s_downloader.py,sha256=u0jmz0yj2wpNY2epVJj_2LyS0EqOqEpMd7zzb7A7yTY,4677
|
10
10
|
abstract_webtools/main.py,sha256=_I7pPXPkoLZOoYGLQDrSLGhGuQt6-PVyXEHZSmglk2g,1329
|
11
11
|
abstract_webtools/soup_gui.py,sha256=n95YAps1R6DpMwR4UbthSqQby0C5WHUa9tsW-f2qpLg,5184
|
12
12
|
abstract_webtools/url_grabber.py,sha256=pnCCev7ZIuM-6cAGTLmK5HfzZg_AX-fLcRpB6ZE70B8,10441
|
@@ -42,7 +42,7 @@ abstract_webtools/managers/soupManager/soupManager.py,sha256=U3_o189-OWoBRaSCe2s
|
|
42
42
|
abstract_webtools/managers/urlManager/__init__.py,sha256=gaJCHeK91Z-eYsBnxgdhbIUten1-gbx-zqx70R6ag-Y,26
|
43
43
|
abstract_webtools/managers/urlManager/urlManager.py,sha256=vCFuLADmv3h7icaaoAsImGqb_49VizPY_ZvMl-C7PYk,7756
|
44
44
|
abstract_webtools/managers/videos/Heather brooke swallo from condom.mp4,sha256=h-bKFLAHt7pGLGu4EcMvSSox7BPRK0Nga3u813iMVKQ,8335544
|
45
|
-
abstract_webtools-0.1.6.
|
46
|
-
abstract_webtools-0.1.6.
|
47
|
-
abstract_webtools-0.1.6.
|
48
|
-
abstract_webtools-0.1.6.
|
45
|
+
abstract_webtools-0.1.6.99.dist-info/METADATA,sha256=CIc6ZhMuDncIZNW3ISr2DlH4zuLeiIDckfSkQzIjC4Y,7288
|
46
|
+
abstract_webtools-0.1.6.99.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
47
|
+
abstract_webtools-0.1.6.99.dist-info/top_level.txt,sha256=2DMJ7RmjTcjCsa-uwAV0K6eXXlIIkFDEjBLg_uyCmCI,18
|
48
|
+
abstract_webtools-0.1.6.99.dist-info/RECORD,,
|
File without changes
|
File without changes
|