tiktokautouploader 4.0__tar.gz → 4.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tiktokautouploader
3
- Version: 4.0
3
+ Version: 4.1
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>
7
- License-File: LICENSE.md
8
7
  Keywords: autoupload,tiktok,tiktokautoupload
9
8
  Classifier: License :: OSI Approved :: MIT License
10
9
  Classifier: Operating System :: OS Independent
@@ -17,6 +16,7 @@ Requires-Dist: inference>=0.18.1
17
16
  Requires-Dist: pillow>=8.0.0
18
17
  Requires-Dist: playwright>=1.0.0
19
18
  Requires-Dist: requests>=2.0.0
19
+ Requires-Dist: scikit-learn>=0.24.0
20
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  <div align="center">
@@ -41,6 +41,7 @@ Description-Content-Type: text/markdown
41
41
  - **🏷 Add Working Hashtags:** Increase your reach by adding effective hashtags that actually work.
42
42
  - **⏰ Cutdown on upload time:** Upload to TikTok with way less hassle and much more speed using our library.
43
43
  - **📝 Upload to different accounts:** Stay organized and on top of multiple different accounts with our multi-account functionality.
44
+ - **🤖 Upload with Telegram**: Code can be integrated with Telegram Bot (More info in /TelegramAutomation)
44
45
 
45
46
  ⭐️ If you like this project please feel free to star it, Thank you.
46
47
 
@@ -71,8 +72,6 @@ pip install tiktokautouploader
71
72
  python -m playwright install
72
73
  ```
73
74
 
74
- **NOTE:** If you want to add sounds to your TikTok, you MUST have the ability to save drafts. If you don't want to add sounds then you don't need this feature.
75
-
76
75
 
77
76
  ## 📝 Quick-Start
78
77
 
@@ -115,7 +114,7 @@ PLEASE READ DOCUMENTATION FOR MORE INFO
115
114
  upload_tiktok(video=video_path, description=description, accountname=accountname, hashtags=hashtags, copyrightcheck=True)
116
115
  ```
117
116
 
118
- ## 🎯 Why Choose `autotiktokuploader`?
117
+ ## 🎯 Why Choose `tiktokautouploader`?
119
118
 
120
119
  - **No more captchas:** Fully automated uploads without interruptions, If captchas do show up, no worries, they will be solved. (read documentation for more info)
121
120
  - **Maximize your reach:** Add popular sounds and effective hashtags that work to boost visibility and go viral!
@@ -131,7 +130,6 @@ This library requires the following dependencies:
131
130
  - `playwright`
132
131
  - `requests`
133
132
  - `Pillow`
134
- - `scikit-learn`
135
133
  - `inference`
136
134
 
137
135
  These will be automatically installed when you install the package.
@@ -143,10 +141,3 @@ Created by **Haziq**. Feel free to reach out at [haziqmk123@gmail.com](mailto:ha
143
141
  ## 📄 License
144
142
 
145
143
  This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
146
-
147
- ## 📮 Related Projects
148
-
149
- If you liked this project please check out my use case showcase project that generates TikToks and uploads them using 'tiktokautouploader'
150
-
151
- [TikTokGenerator](https://github.com/haziq-exe/TikTokGenerator)
152
-
@@ -20,6 +20,7 @@
20
20
  - **🏷 Add Working Hashtags:** Increase your reach by adding effective hashtags that actually work.
21
21
  - **⏰ Cutdown on upload time:** Upload to TikTok with way less hassle and much more speed using our library.
22
22
  - **📝 Upload to different accounts:** Stay organized and on top of multiple different accounts with our multi-account functionality.
23
+ - **🤖 Upload with Telegram**: Code can be integrated with Telegram Bot (More info in /TelegramAutomation)
23
24
 
24
25
  ⭐️ If you like this project please feel free to star it, Thank you.
25
26
 
@@ -50,8 +51,6 @@ pip install tiktokautouploader
50
51
  python -m playwright install
51
52
  ```
52
53
 
53
- **NOTE:** If you want to add sounds to your TikTok, you MUST have the ability to save drafts. If you don't want to add sounds then you don't need this feature.
54
-
55
54
 
56
55
  ## 📝 Quick-Start
57
56
 
@@ -94,7 +93,7 @@ PLEASE READ DOCUMENTATION FOR MORE INFO
94
93
  upload_tiktok(video=video_path, description=description, accountname=accountname, hashtags=hashtags, copyrightcheck=True)
95
94
  ```
96
95
 
97
- ## 🎯 Why Choose `autotiktokuploader`?
96
+ ## 🎯 Why Choose `tiktokautouploader`?
98
97
 
99
98
  - **No more captchas:** Fully automated uploads without interruptions, If captchas do show up, no worries, they will be solved. (read documentation for more info)
100
99
  - **Maximize your reach:** Add popular sounds and effective hashtags that work to boost visibility and go viral!
@@ -110,7 +109,6 @@ This library requires the following dependencies:
110
109
  - `playwright`
111
110
  - `requests`
112
111
  - `Pillow`
113
- - `scikit-learn`
114
112
  - `inference`
115
113
 
116
114
  These will be automatically installed when you install the package.
@@ -122,10 +120,3 @@ Created by **Haziq**. Feel free to reach out at [haziqmk123@gmail.com](mailto:ha
122
120
  ## 📄 License
123
121
 
124
122
  This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
125
-
126
- ## 📮 Related Projects
127
-
128
- If you liked this project please check out my use case showcase project that generates TikToks and uploads them using 'tiktokautouploader'
129
-
130
- [TikTokGenerator](https://github.com/haziq-exe/TikTokGenerator)
131
-
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "tiktokautouploader"
7
- version = "4.0"
7
+ version = "4.1"
8
8
  description = "Upload or schedule videos to TikTok with viral TikTok sounds and hashtags."
9
9
  readme = {file = "README.md", content-type = "text/markdown"}
10
10
  keywords = ["tiktok", "autoupload", "tiktokautoupload"]
@@ -27,6 +27,7 @@ dependencies = [
27
27
  "playwright>=1.0.0",
28
28
  "requests>=2.0.0",
29
29
  "Pillow>=8.0.0",
30
+ "scikit-learn>=0.24.0",
30
31
  "inference>=0.18.1",
31
32
  ]
32
33
 
@@ -35,7 +36,7 @@ tags = ["wheel"]
35
36
 
36
37
  [tool.hatch.metadata]
37
38
  name = "tiktokautouploader"
38
- version = "4.0"
39
+ version = "4.1"
39
40
  description = "Upload or schedule videos to TikTok with TikTok sounds and hashtags that work."
40
41
  readme = {file = "README.md", content-type = "text/markdown"}
41
42
  keywords = ["tiktok", "autoupload", "tiktokautoupload"]
@@ -57,4 +58,3 @@ python_requires = ">=3.6"
57
58
  [tool.hatch.envs]
58
59
  packages = ["autotiktokuploader"]
59
60
  include = ["autotiktokuploader/__init__.py", "autotiktokuploader/function.py", "autotiktokuploader/Js_assets/login.js"]
60
-
@@ -144,8 +144,8 @@ def download_image(image_url):
144
144
 
145
145
  def run_inference_on_image_tougher(image_path, object):
146
146
 
147
- k = 'n|KIeDZnRZiJ};iVHz;R'
148
- rk = ''.join(chr((ord(c) - 3) % 256) for c in k)
147
+ #rk <- Roboflow key
148
+ rk = 'kyHFbAWkOWfGz8fSEw8O'
149
149
 
150
150
  CLIENT = InferenceHTTPClient(
151
151
  api_url="https://detect.roboflow.com",
@@ -177,8 +177,8 @@ def run_inference_on_image_tougher(image_path, object):
177
177
 
178
178
  def run_inference_on_image(image_path):
179
179
 
180
- k = 'n|KIeDZnRZiJ};iVHz;R'
181
- rk = ''.join(chr((ord(c) - 3) % 256) for c in k)
180
+ #rk <- Roboflow key
181
+ rk = 'kyHFbAWkOWfGz8fSEw8O'
182
182
 
183
183
  CLIENT = InferenceHTTPClient(
184
184
  api_url="https://detect.roboflow.com",
@@ -485,7 +485,7 @@ def upload_tiktok(video, description, accountname, hashtags=None, sound_name=Non
485
485
  time.sleep(0.2)
486
486
  if suppressprint == False:
487
487
  print("Tik tok done loading file onto servers")
488
-
488
+
489
489
  if (schedule == None) and (day != None):
490
490
  sys.exit("ERROR: CANT SCHEDULE FOR ANOTHER DAY USING 'day' WITHOUT ALSO INCLUDING TIME OF UPLOAD WITH 'schedule'; PLEASE ALSO INCLUDE TIME WITH 'schedule' PARAMETER")
491
491
 
@@ -646,13 +646,12 @@ def upload_tiktok(video, description, accountname, hashtags=None, sound_name=Non
646
646
  break
647
647
  if page.locator("span", has_text="Copyright issues detected.").is_visible():
648
648
  sys.exit("COPYRIGHT CHECK FAILED: VIDEO SAVED AS DRAFT, COPYRIGHT AUDIO DETECTED FROM TIKTOK")
649
-
650
649
 
651
650
  try:
652
651
  if schedule == None:
653
652
  if stealth == True:
654
653
  time.sleep(1)
655
- page.click('button:has-text("Post")', timeout=10000)
654
+ page.click('button:has-text("Post")[aria-disabled="false"]', timeout=10000)
656
655
  uploaded = False
657
656
  checks = 0
658
657
  while uploaded == False:
@@ -820,7 +819,7 @@ def upload_tiktok(video, description, accountname, hashtags=None, sound_name=Non
820
819
  if schedule == None:
821
820
  if stealth == True:
822
821
  time.sleep(1)
823
- page.click('button:has-text("Post")', timeout=10000)
822
+ page.click('button:has-text("Post")[aria-disabled="false"]', timeout=10000)
824
823
  uploaded = False
825
824
  checks = 0
826
825
  while uploaded == False:
@@ -1,4 +0,0 @@
1
- /.DS_Store
2
- /build
3
- /dist
4
- /tiktokautouploader.egg-info
@@ -1,139 +0,0 @@
1
- # autotiktokuploader Documentation
2
-
3
- This document provides detailed information about the parameters and usage of the `upload_tiktok` function in the **AutoTikTokUploader** library. The function is designed to automate the process of uploading or scheduling videos to TikTok with additional features such as adding TikTok sounds, hashtags, and conducting copyright checks.
4
-
5
- ### ❗ Key Sections:
6
-
7
- - **Parameter Explanations**: Provides detailed descriptions of each parameter, including the valid options and their effects.
8
- - **Initialization Info**: Details instances that occur during first run of function
9
- - **Important Notes**: Highlights important account recommendations and limitations related to TikTok accounts and scheduling.
10
- - **Supported Captchas**: Showcases the Captchas the code is able to solve
11
- - **Runtime**: Provides an estimate of how much runtime is added by different parameters
12
- - **Example Usage**: Demonstrates a practical example of how to use the function.
13
-
14
- ## 📜 Function: `upload_tiktok`
15
-
16
- ### Parameters
17
-
18
- - **`video`** (str)
19
- - The input path for your video file that you want to upload to TikTok.
20
-
21
- - **`description`** (str)
22
- - The description text that will accompany the video when uploaded. hashtags included in description will NOT work, must be included in `hashtags` parameter
23
-
24
- - **`accountname`** (str)
25
- - The name of the account you want to post on.
26
-
27
- - **NOTE:** When uploading to an account for the FIRST TIME ONLY, you will be prompted to log-in, once you log-in your cookies will be stored and you will not need to log-in to that account again. Read INITIALIZATION section for more info.
28
-
29
- - **`hashtags`** (list of str, optional, default: None)
30
- - An array of hashtag strings (e.g., `['#example', '#fun']`) to be added to the video description.
31
-
32
- - **`sound_name`** (str, optional, default: None)
33
- - The name of the TikTok sound that you want to use for the video. This sound will be applied during the upload.
34
-
35
- - NOTE: please be specific with sound name (include sound creator name also if possible)
36
-
37
- - **`sound_aud_vol`** (str, optional, default: `'mix'`)
38
- - Determines the volume mix between the TikTok sound and the original video audio. Accepts one of the following options:
39
- - `'mix'`: The TikTok sound and original audio will have a 50/50 split.
40
- - `'background'`: The original audio will be louder, and the TikTok sound will be faintly heard in the background.
41
- - `'main'`: The TikTok sound will be louder, and the original audio will be faintly heard in the background.
42
-
43
- - Defaults to `'mix'` if invalid option chosen
44
-
45
- - **`schedule`** (str, optional, default: None)
46
- - The time you want the video to be uploaded. The format should be `HH:MM`, and the minute (`MM`) must be a multiple of 5. The scheduled time must be at least 15 minutes later than the current local time (unless scheduling for a different day). The time should be in your local time zone.
47
-
48
- - **`day`** (int, optional, default: None) (requires `schedule` != None)
49
- - If you want to schedule the video for a different day, this parameter specifies the day of the current month on which to upload the video. i.e: If current day is Sept 3rd, day=5 will upload video on Sept 5th
50
-
51
- - NOTE: You will also need to specify time of upload in `schedule` parameter or else `day` won't work
52
-
53
- **Important**:
54
- - You can only schedule a maximum of 10 days in advance.
55
- - If scheduling for the next month, you can only schedule within the first 5 days of the next month (as long as they are also within 10 days of the current date). i.e: If current day is Sept 30th, day=5 will upload on Oct 5th, 6 WILL NOT WORK.
56
-
57
- - **`copyrightcheck`** (bool, optional, default: `False`)
58
- - If set to `True`, the function will conduct a copyright check on TikTok before uploading. If the check fails, the code execution will stop.
59
-
60
- - **`suppressprint`** (bool, optional, default: `False`)
61
- - Suppresses print messages that indicate the progress of the video upload. It is recommended to set this to `False` when first running the code to see progress and ensure everything works correctly.
62
-
63
-
64
- ## 🛠️ Initialization Info
65
-
66
- - **During FIRST RUN:**
67
-
68
- - Javascript dependencies will be automatically downloaded, once downloaded it will not attempt to download it again unless the files get deleted.
69
-
70
- - Runtime might be a 20-30 seconds longer than usual, this is due to libraries being built. Runtime should return to normal after first run
71
-
72
- - **When uploading to an account for the FIRST TIME:**
73
-
74
- - You will be asked to log-in to TikTok, your cookies from your log-in will then be stored in a file called `TK_cookies_(youraccountname).json`. You will not need to log-in to that account again after that.
75
-
76
-
77
- ## 📝 Important Notes
78
-
79
- - **VERY IMPORTANT: TikTok Account Recommendations**:
80
- - It is recommended to have a TikTok account with at least a few weeks of history built up for the best results.
81
- - If you want to upload your video with TikTok sounds, your TikTok account MUST have the ability to save drafts; otherwise, you can just upload/schedule the video with copyright checks and trending hashtags.
82
-
83
- - **Scheduling Limitations**:
84
- - The function allows scheduling up to 10 days in advance.
85
- - If you need to schedule a video for the next month, the video can only be uploaded within the first 5 days of that month (as long as these days are within 10 days from the current date).
86
-
87
- ## ⛔ Supported Captchas:
88
-
89
- ### Captcha solver currently supports Captchas of type:
90
- <p align="center">
91
- <img src="READMEimage/Captcha1.gif" alt="" width="250" loop=infinite/>
92
- </p>
93
-
94
- <p align="center">
95
- <img src="READMEimage/2ndCaptcha.gif" alt="" width="250" loop=infinite/>
96
- </p>
97
-
98
- #### Note:
99
- - These GIFs are just to showcase the project's ability to auto-solve captcha's, this entire process will take place 'under the hood', you will not see the captcha being solved.
100
-
101
- - As far as I'm aware these captchas are the only types of captchas that you may encounter when trying to upload TikTok's, if you do encounter a different captcha, I highly encourage you to email me and let me know and I will try to increase the capabilities of this project to include those captcha's as well.
102
-
103
- - To check what captcha shows up when you upload on your account just open this link while logged in to TikTok: https://www.tiktok.com/tiktokstudio/upload?from=upload&lang=en
104
-
105
- ## 🕰️ Runtime:
106
- **Total runtime depends on your wifi connection and how long TikTok takes to upload your video to their servers, however, here are approximations on how much runtime is added by each parameter**
107
-
108
- - **Captcha's:** 3 - 10 secs (in RARE cases, it may take longer)
109
- - **Adding Sound:** 3 - 5 secs
110
- - **Scheduling:** 5 - 8 secs
111
- - **Copyright Check:** 2 - 5 secs
112
-
113
- - All in all, runtime won't exceed one minute in most cases.
114
-
115
- - **NOTE:** When running for the FIRST TIME ONLY, it may take an extra 20 - 30 seconds at the beginning for the code to start running as libraries are being built
116
-
117
-
118
- ## Example Usage
119
-
120
- Here’s a basic example of how to use the `upload_tiktok` function:
121
-
122
- ```python
123
- from autotiktokuploader import upload_tiktok
124
-
125
- upload_tiktok(
126
- video='path/to/your/video.mp4',
127
- description='Check out my latest video!',
128
- accountname= 'mytiktokaccount',
129
- hashtags=['#fun', '#viral'],
130
- sound_name='popular_sound',
131
- sound_aud_vol='mix',
132
- schedule='15:00',
133
- day=5,
134
- copyrightcheck=True,
135
- suppressprint=False
136
- )
137
- ```
138
-
139
- For more details or if errors persist, please feel free to contact me at haziqmk123@gmail.com or on LinkedIn (on my github profile)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) [2024] [HAZIQ KHALID]
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.