Comments (5)
Hello, I am sorry this was not working for you.
This check is supposed to catch when TikTok will sometimes not allow the initial upload of your video sometimes (there is a retry parameter). TikTok not allowing your video to be uploaded in my experience is most commonly the result of too many requests in a short period of time.
During development, I found that waiting a few hours was enough to get TikTok to stop rejecting the upload.
If I may ask, what change did you make to fix this issue that you have been having?
from tiktok-uploader.
I managed to simplify the changes I made. I forked your directory and made the changes, you can check it on my profile
Basically 2 things:
- your 'loading indicator' was the word 'Cancel' in the HTML but this word might never appear on foreign languages browsers, so I changed it to 'data-pct' element which is not language dependent
- you wasn't waiting for the 'loading logo' to disappear so I added this part. This comment do not seem relevant anymore so I removed it
# NOTE (IMPORTANT): implicit wait as video should already be uploaded if not failed
# An exception throw here means the video failed to upload an a retry is needed
Please tell me if it works on your machine, im curious
from tiktok-uploader.
Being language-dependent is definitely my bad here.
The comment is still useful. I probably just need to rephrase it.
The prior check basically made sure the video was no longer uploading. If that is the case and the video is not found, then that means that the upload fails.
Because people's internet connections are all different, the explicit wait
as defined in the config.toml
is quite large. However, most of the time, the video would fail to upload quite quickly.
So, to give people plenty of time to upload their videos while not having them wait if the video fails, this two-step system is required.
from tiktok-uploader.
Yes, I think putting it to 60secs is good as you did. On my machine, selenium-driven browser is really slow and vid takes up to 30secs to fully upload from the moment the set_video function is called.
And if I might ask, why did you add a tiktok_uploader directory in your src ? I think this is confusing. Plus it has the same name as the repo which is also confusing. If there is no specific reason for this, you could delete the src/tiktok_uploader directory and move its content to src
from tiktok-uploader.
So, naming the directory tiktok_uploader
was required because of the fact that this package is published on PyPI. I technically had two options of how to do it (src/tiktok_uploader
or tiktok_uploader
) . I opted for the former because the src
paradigm is a little bit more understandable to programmers used to other languages in my opinion.
I am working on a release which logs each intermediate set and adds support for headless browsers, but it is finals at my university, so it will have to be after that.
from tiktok-uploader.
Related Issues (20)
- Failed to upload HOT 5
- Multiple Account - Cookies HOT 2
- Error when running script with my cookies HOT 2
- FYP - Zero Viewers HOT 1
- CLI schedule error :( HOT 1
- Schedule switch id is changing HOT 1
- Failed to upload HOT 9
- Schedule and upload not work HOT 4
- Elelment not Found HOT 2
- The application is great, can you add an option to select affiliate products? HOT 1
- The issue of configuring proxy for Firefox HOT 3
- Low views with uploader. HOT 7
- Upload Button Not being Pressed HOT 1
- TikTok-Uploader Not Pressing Upload/ Error Uploading HOT 5
- Error while uploading video
- Solve the problem of 0 views HOT 9
- IT doesn't post at the end HOT 1
- Video uploaded successfully but does not appear in profile HOT 2
- How to start it? HOT 2
- video with description failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiktok-uploader.