Giter Club home page Giter Club logo

Comments (4)

wkaisertexas avatar wkaisertexas commented on May 26, 2024

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.

Screenshot 2023-02-28 at 1 09 39 PM

Screenshot 2023-02-28 at 1 10 27 PM

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.

Devstored avatar Devstored commented on May 26, 2024

@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.

wkaisertexas avatar wkaisertexas commented on May 26, 2024

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.

wkaisertexas avatar wkaisertexas commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.