Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing JS Dependencies #18

Closed
vKxvo opened this issue Dec 24, 2024 · 1 comment
Closed

Issue installing JS Dependencies #18

vKxvo opened this issue Dec 24, 2024 · 1 comment

Comments

@vKxvo
Copy link

vKxvo commented Dec 24, 2024

Screenshot 2024-12-24 171135

@haziq-exe
Copy link
Owner

haziq-exe commented Jan 16, 2025

There seems to be an issue with npm and installing the Javascript dependencies. The Javascript part of the code is used to store your account cookies after you login so that your session id can be used to upload whenever you run the code.

Here is a manual way to store your cookies so you won't need to run the Javascript and can avoid this error:

  1. Install the following chrome extension that will allow you to export your cookies https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm

  2. Log-in to TikTok and go to the homepage

  3. Click on the extension and export your cookies as .json

  4. Save your cookies file in the same directory you run the code in and save it as TK_cookies_{accountname}.json where accountname is the same as string you input in the accountname parameter of the function

You only need to do these steps once.

Now whenever you upload with that same accountname the code with use this cookie .json file to upload to the account. If you wish to upload to a new account, repeat these steps with that account.

@haziq-exe haziq-exe pinned this issue Jan 16, 2025
@haziq-exe haziq-exe changed the title Installing Js Dependencies Issue installing JS Dependencies Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants