In this assignment, we will use Python to gather data from the internet. Specifically, we will be looking to gather data from TikTok. You will not need a TikTok account for this assignment. Going through this assignment will teach you the basics for gathering data by scraping the web and using different APIs.
For this assignment, you will be getting data by username, trending videos, liked videos, and by search terms.
Before you ever scrape, make sure to read the terms of service. Here is some important info from TikTok’s terms of service.
- You may not use any automated system or software, whether operated by a third party or otherwise, to extract any data from the Service for commercial purposes (“screen scraping”);
- You acknowledge and agree that users of the Services may also extract all or any portion of User Content uploaded or otherwise made available by you through the Services so as to produce additional User Content, including collaborative User Content with other users that combine and intersperse with User Content generated by you and other users.
In other words, we cannot use any data we collect for commercial purposes.


0 comments