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

V5.0.0 #803

Merged
merged 18 commits into from
Feb 14, 2022
Merged

V5.0.0 #803

merged 18 commits into from
Feb 14, 2022

Conversation

davidteather
Copy link
Owner

@davidteather davidteather commented Jan 24, 2022

IMPORTANT CHANGES

  • Please read the upgrading from V4 to V5 section on the readme
    • Higher level approach using objects
    • Auto-parsing of attributes and responses back into objects
    • Should be easier to work with (especially for new-comers not as familiar with this package)
  • dropped support for selenium (sorry but it's been too annoying to main multiple browsers)

TODO

  • None

DONE

  • New YouTube video tutorial for v5
  • refactor kwargs stuff so it's not as bad as it is right now
  • make sure everything is typed and valid
  • write a section in the api modules about what different keys mean and their types
  • split hashtag, video, sound, and user into their own classes
    • creates a higher level feel of the package
  • switch to generators for all the methods
  • update tests
  • improve logging
  • Write an upgrading to v5 section in the readme
  • Add more doc strings to the methods everywhere
  • update readme to reflect new changes
  • update issue templates
  • change process_kwargs
  • try to minimize amount of instance variables on TikTokApi for cleanliness or at least use private instance variables

V5 Example Usage

from TikTokApi import TikTokApi

verify_fp = "verify_xxx"
api = TikTokApi(custom_verify_fp=verify_fp)

tag = api.hashtag(name="funny")
print(tag.info())

for video in tag.videos():
    print(video.id)
    for u_vid in video.author.videos():
        print(u_vid.id)

@davidteather davidteather changed the title [WIP] V5.0.0 V5.0.0 Feb 14, 2022
@davidteather davidteather merged commit 3973da6 into master Feb 14, 2022
dwoffinden added a commit to dwoffinden/tiktok-rss-flat that referenced this pull request Feb 14, 2022
dwoffinden added a commit to dwoffinden/tiktok-rss-flat that referenced this pull request Feb 14, 2022
dwoffinden added a commit to dwoffinden/tiktok-rss-flat that referenced this pull request Feb 14, 2022
dwoffinden added a commit to dwoffinden/tiktok-rss-flat that referenced this pull request Feb 14, 2022
@estatistics
Copy link

how to download a user's videos; can you provide an example?

Copy link

@3garbilx 3garbilx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1,52 +1,41 @@
from TikTokApi import TikTokApi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@@ -1,52 +1,41 @@
from TikTokApi import TikTokApi
import os

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2

Copy link

@3garbilx 3garbilx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

72

Copy link

@3garbilx 3garbilx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh pr checkout 803

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.

None yet

3 participants