This Python script allows you to retrieve user information from TikPorn by providing a username. It extracts details such as nickname, bio, number of videos, likes, views, followers, and whether the user is verified. The script also downloads the user's profile picture if available.
- Extracts the following user information from TikPorn:
- Nickname
- Title
- Verified Status
- Number of Videos
- Likes
- Views
- Followers
- Bio
- Downloads the user's profile picture.
- Formats and displays the extracted information in a readable format.
- Python 3.x
- Required Libraries:
requests
re
argparse
html
To install the required libraries, you can use:
pip3 install requests
To use the script, run it from the command line and pass the TikPorn username (without @
) as an argument.
python3 TikPorn.py <username>
- Scrapes and returns the following user information:
- Nickname
- Title
- Profile picture URL
- Number of videos, likes, views, followers
- Bio
- Verified status
- Downloads the profile picture to the current directory, using the nickname as part of the filename.
- Formats the user information into a readable string for console output.
If the username is invalid or the user is not found, the script will return:
- "No information found for user
<username>
."
If the profile picture cannot be downloaded, it will return:
- "Could not download the profile picture."
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for more details.
Feel free to fork this repository and submit pull requests for improvements or bug fixes!
This script is for educational purposes only. Please ensure you comply with TikPorn's terms of service and policies.