Skip to content

Ability to specify the download directory for content#80

Open
svonidze wants to merge 4 commits intodfreelon:mainfrom
svonidze:main
Open

Ability to specify the download directory for content#80
svonidze wants to merge 4 commits intodfreelon:mainfrom
svonidze:main

Conversation

@svonidze
Copy link

No description provided.

svonidze added 3 commits June 12, 2025 19:10
This update makes several modifications to the data importing scripts for better robustness and clarity. As a part of these changes, a new function for content download from TikTok was added to improve the overall import workflow. Here are the main changes:

1. Added better handling for JSON data retrieval from TikTok,
2. Modified existing functions to improve error messages and clarity,
3. Added additional path parameters to content saving functions,
4. Replaced existing content downloading library with a custom function to handle pulling content data from TikTok.

These improvements will make the script more reliable and easier to use.
…files and consistent `None` returns

Refactor `pyktok.py` to skip downloading if files already exist and ensure consistent use of `None` as return value.
@dfreelon
Copy link
Owner

Hi, I appreciate your efforts on this PR. I'll need some time to check your code, but in the meantime, a few comments:

  • In the future, please submit substantive changes as a separate PR from code style fixes. Doing everything at once makes it hard to distinguish what I need to test vs. what's merely cosmetic.
  • Please explain what the get_user_data function does--AFAICT it partially duplicates the existing get_video_urls, except it only supports TikTokApi's user endpoint and offers fewer parameters (such as control over how many video metadata rows are downloaded). Also, since you didn't add a wrapper like save_tiktok_multi_page for it, execution is less elegant.

TIA

…ed dependencies

This commit introduces an ARM64-compatible version of the pyktok package, specifically designed for Raspberry Pi. Key changes include:

1. New installation script (`install_arm64.sh`) for setting up the environment and dependencies.
2. Added `pyproject-arm64.toml` for managing project metadata and dependencies.
3. Comprehensive README_ARM64.md with installation instructions and usage guidelines.
4. New test script (`test_arm64.py`) to verify ARM64 compatibility.
5. Refactored core functionality in `pyktok_arm64.py` to replace incompatible dependencies with Selenium-based alternatives.

These updates enhance the usability of pyktok on ARM64 architecture, addressing previous compatibility issues.
@dfreelon
Copy link
Owner

Hi, I just took a look at your new pushes. I'll test them and get back to you, thanks.

@svonidze
Copy link
Author

svonidze commented Sep 19, 2025

sorry, dont want to make a public push , made a PR in my repo

@dfreelon
Copy link
Owner

Your changes look good, I'm just figuring out the best way to integrate them

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

Successfully merging this pull request may close these issues.

2 participants