tiktokautouploader 3.3__py2.py3-none-any.whl → 3.7__py2.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.
- tiktokautouploader/Js_assets/package.json +12 -0
- tiktokautouploader/function.py +11 -8
- {tiktokautouploader-3.3.dist-info → tiktokautouploader-3.7.dist-info}/METADATA +1 -1
- tiktokautouploader-3.7.dist-info/RECORD +8 -0
- tiktokautouploader-3.3.dist-info/RECORD +0 -7
- {tiktokautouploader-3.3.dist-info → tiktokautouploader-3.7.dist-info}/WHEEL +0 -0
- {tiktokautouploader-3.3.dist-info → tiktokautouploader-3.7.dist-info}/licenses/LICENSE.md +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "tiktokautouploader-assets",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"scripts": {
|
5
|
+
"postinstall": "npx playwright install chromium"
|
6
|
+
},
|
7
|
+
"dependencies": {
|
8
|
+
"playwright": "^1.48.2",
|
9
|
+
"playwright-extra": "^4.3.6",
|
10
|
+
"puppeteer-extra-plugin-stealth": "^2.11.2"
|
11
|
+
}
|
12
|
+
}
|
tiktokautouploader/function.py
CHANGED
@@ -54,11 +54,14 @@ def run_javascript():
|
|
54
54
|
def install_js_dependencies():
|
55
55
|
js_dir = pkg_resources.resource_filename(__name__, 'Js_assets')
|
56
56
|
node_modules_path = os.path.join(js_dir, 'node_modules')
|
57
|
-
|
57
|
+
|
58
58
|
if not os.path.exists(node_modules_path):
|
59
59
|
print("JavaScript dependencies not found. Installing...")
|
60
|
-
|
61
|
-
|
60
|
+
try:
|
61
|
+
subprocess.run(['npm', 'install', '--silent'], cwd=js_dir, check=True)
|
62
|
+
except subprocess.CalledProcessError as e:
|
63
|
+
print("An error occurred during npm installation.")
|
64
|
+
print(f"Error details: {e}")
|
62
65
|
else:
|
63
66
|
time.sleep(0.1)
|
64
67
|
|
@@ -509,23 +512,23 @@ def upload_tiktok(video, description, accountname, hashtags=None, sound_name=Non
|
|
509
512
|
page.locator('div.TUXTextInputCore-leadingIconWrapper:has(svg > path[d="M15 3a1 1 0 0 0-1 1v3h-1.4c-3.36 0-5.04 0-6.32.65a6 6 0 0 0-2.63 2.63C3 11.56 3 13.24 3 16.6v16.8c0 3.36 0 5.04.65 6.32a6 6 0 0 0 2.63 2.63c1.28.65 2.96.65 6.32.65h22.8c3.36 0 5.04 0 6.32-.65a6 6 0 0 0 2.63-2.63c.65-1.28.65-2.96.65-6.32V16.6c0-3.36 0-5.04-.65-6.32a6 6 0 0 0-2.63-2.63C40.44 7 38.76 7 35.4 7H34V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3H18V4a1 1 0 0 0-1-1h-2Zm-2.4 8H14v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3h12v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3h1.4c1.75 0 2.82 0 3.62.07a5.11 5.11 0 0 1 .86.14h.03a2 2 0 0 1 .88.91 5.11 5.11 0 0 1 .14.86c.07.8.07 1.87.07 3.62v1.9H7v-1.9c0-1.75 0-2.82.07-3.62a5.12 5.12 0 0 1 .14-.86v-.03a2 2 0 0 1 .88-.87l.03-.01a5.11 5.11 0 0 1 .86-.14c.8-.07 1.87-.07 3.62-.07ZM7 22.5h34v10.9c0 1.75 0 2.82-.07 3.62a5.11 5.11 0 0 1-.14.86v.03a2 2 0 0 1-.88.87l-.03.01a5.11 5.11 0 0 1-.86.14c-.8.07-1.87.07-3.62.07H12.6c-1.75 0-2.82 0-3.62-.07a5.11 5.11 0 0 1-.89-.15 2 2 0 0 1-.87-.87l-.01-.03a5.12 5.12 0 0 1-.14-.86C7 36.22 7 35.15 7 33.4V22.5Z"])').click()
|
510
513
|
time.sleep(0.2)
|
511
514
|
try:
|
512
|
-
page.locator(f'span.day.valid:
|
515
|
+
page.locator(f'span.day.valid:text-is("{day}")').click()
|
513
516
|
except:
|
514
517
|
sys.exit("SCHEDULE DAY ERROR: ERROR WITH SCHEDULED DAY, read documentation for more information on format of day")
|
515
518
|
try:
|
516
519
|
time.sleep(0.2)
|
517
520
|
page.locator('div.TUXTextInputCore-leadingIconWrapper:has(svg > path[d="M24 2a22 22 0 1 0 0 44 22 22 0 0 0 0-44ZM6 24a18 18 0 1 1 36 0 18 18 0 0 1-36 0Z"])').click()
|
518
521
|
time.sleep(0.2)
|
519
|
-
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-right:
|
522
|
+
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-right:text-is("{minute}")').scroll_into_view_if_needed()
|
520
523
|
time.sleep(0.2)
|
521
|
-
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-right:
|
524
|
+
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-right:text-is("{minute}")').click()
|
522
525
|
time.sleep(0.2)
|
523
526
|
if page.locator("div.tiktok-timepicker-time-picker-container").is_visible():
|
524
527
|
time.sleep(0.1)
|
525
528
|
else:
|
526
529
|
page.locator('div.TUXTextInputCore-leadingIconWrapper:has(svg > path[d="M24 2a22 22 0 1 0 0 44 22 22 0 0 0 0-44ZM6 24a18 18 0 1 1 36 0 18 18 0 0 1-36 0Z"])').click()
|
527
|
-
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-left:
|
528
|
-
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-left:
|
530
|
+
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-left:text-is("{hour}")').scroll_into_view_if_needed()
|
531
|
+
page.locator(f'.tiktok-timepicker-option-text.tiktok-timepicker-left:text-is("{hour}")').click()
|
529
532
|
time.sleep(1)
|
530
533
|
|
531
534
|
if suppressprint == False:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: tiktokautouploader
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.7
|
4
4
|
Summary: Upload or schedule videos to TikTok with viral TikTok sounds and hashtags.
|
5
5
|
Project-URL: Homepage, https://github.com/haziq-exe/TikTokAutoUploader
|
6
6
|
Author-email: HAZIQ <haziqmk123@gmail.com>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
tiktokautouploader/__init__.py,sha256=u7OWCK_u68ST8dfrkSF4Yw44CJOzV9NXI6ASRuoDfmE,64
|
2
|
+
tiktokautouploader/function.py,sha256=3x_mharQkxbElbWEqCusB0qZAGy-PlLfkkozHYqpc3w,44660
|
3
|
+
tiktokautouploader/Js_assets/login.js,sha256=SLhtPYo8ZfTRUnbR7Xqp084lSuAOqIWUxi75FlFH3vs,966
|
4
|
+
tiktokautouploader/Js_assets/package.json,sha256=aNbwSOpEpDUlplSuXugHVeN11riVwV4ofVkRPwHzbLs,273
|
5
|
+
tiktokautouploader-3.7.dist-info/METADATA,sha256=XZ7nBoYoXXeAGiNXvAFhZTsmqWs4ihgIIDH5blQar94,6125
|
6
|
+
tiktokautouploader-3.7.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
|
7
|
+
tiktokautouploader-3.7.dist-info/licenses/LICENSE.md,sha256=hYds_VJIpnS5gC73WhuWk2IY_e9BWjuEJthQCb9ThyU,1073
|
8
|
+
tiktokautouploader-3.7.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
tiktokautouploader/__init__.py,sha256=u7OWCK_u68ST8dfrkSF4Yw44CJOzV9NXI6ASRuoDfmE,64
|
2
|
-
tiktokautouploader/function.py,sha256=Z3Ic2fRzmMMVlvhovzGO0RcZGgkllk_9XbjvjUpjvHw,44657
|
3
|
-
tiktokautouploader/Js_assets/login.js,sha256=SLhtPYo8ZfTRUnbR7Xqp084lSuAOqIWUxi75FlFH3vs,966
|
4
|
-
tiktokautouploader-3.3.dist-info/METADATA,sha256=U7Tbvg0Gm64NiCMlKRMXRn3nJTuBRso-VLCQykpDIes,6125
|
5
|
-
tiktokautouploader-3.3.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
|
6
|
-
tiktokautouploader-3.3.dist-info/licenses/LICENSE.md,sha256=hYds_VJIpnS5gC73WhuWk2IY_e9BWjuEJthQCb9ThyU,1073
|
7
|
-
tiktokautouploader-3.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|