Comments (4)
Hashtags and Mentions
Sure. Hashtags and mentions are a little harder to automate because they are created through are more convoluted process. The HTML they generate is fairly simple, however.
Developing this system is definitely something I will do, but I have to think about how to make it resilient enough to not break when TikTok updates their site.
Setting Thumbnails
Settings thumbnails was also something I did not envision, but it requires similar lower-level manipulation.
Do you have a specific part of the video you want to thumbnail to be, or would you more so be randomly the thumbnail frame?
Custom Functions
Something I will 100% do in the next release is allow the user to pass a custom function which is passed the webdriver before submitted. This way, the user can make any custom actions they like.
from tiktok-uploader.
@wkaisertexas Regarding Hashtags, I have inserted this piece of code in your library. I fill in a list as a parameter and it works pretty well but really not robust in my opinion.
if hashtag: time.sleep(300) for unit_hashtag in hashtag: time.sleep(2) desc.send_keys(" ") desc.send_keys(str(unit_hashtag)) time.sleep(2) desc.send_keys(Keys.RETURN)
Regarding the thumbnail, for example I would like the bot to select 3 seconds from the video.
Also, do you know how long cookies are valid?
Thank you so much
from tiktok-uploader.
Looking into my browser settings, my session_id
token expires three months after it was created.
I have an old computer which I logged into which has been logged in for longer than that. I am not quite sure, but there may be a process for automatically refreshing the token. If so, it probably would be a good idea to save the session_id
.
This is not really something that I know too much about, though.
If sending an enter key after the hashtag works, that is great. I thought direct manipulation of the HTML might have been required which could potentially be more fragile if classnames and the like change.
from tiktok-uploader.
Version 0.1.2 adds support for hashtags and mentions. Thanks for the suggestion.
Changing the thumbnail was not tackled as to set the video's position to 3 seconds in, you would also need to know the length of the video, potentially requiring more libraries and in general I think it may be too broad for the scope of this library.
I really intended this library be used as the final step of a video uploading pipeline. In that pipeline, the first segment of the video is designed to function as a thumbnail.
Check out @c_span. For these videos, the first 10 seconds have a number which represents which part of the series the video is in.
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 6
- Video uploaded successfully but does not appear in profile HOT 3
- 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.