Published December 5, 2024
| Version v1
Dataset
Open
Generative artificial intelligence and machine learning methods to screen social media content
Authors/Creators
Description
This repository contains scripts for collecting data from TikTok, including videos, metadata, and visual insights. The data collection process involves several steps, each outlined below along with instructions for setup and usage.
- Python 3.x
- Required Python packages:
pyktok,opencv-python,requests - Oracle Cloud Vision API credentials (for visual insights extraction)
- Search for hashtags on tiktok and the use zeeschuimer extension from https://github.com/digitalmethodsinitiative/zeeschuimer
- Combine metadata from multiple hashtag pairs into a single dataset.
- Use the provided Python script for deduplication based on unique video IDs.
- Run combineHashtagMetadata.py
- Utilize the
pyktoklibrary to download TikTok videos based on video IDs extracted during metadata collection. - Modify the script to specify the desired video download settings and output directory.
- Run pyktokVideoCollection.py
- Extract text overlays and descriptions from videos.
- Transcribe files using OpenAI's Whisper.
- Set up whisper according to https://github.com/openai/whisper
- Run whisperTranscriptGenerator
- Extract image frames from videos at regular intervals.
- Run framesGeneration.py
- Analyze frames using Oracle Cloud Vision API to identify objects, text, faces, and other visual elements.
- Record attributes such as detected faces, errors, image classification labels, and object detection model versions.
- This script in oracleFramefeatureExtractor.py
- Run each script sequentially, following the instructions provided within the scripts.
- Customize script parameters as needed to suit specific data collection requirements.
- Ensure proper API credentials, permissions and setup Oracle Cloud Vision API according to Oracle documentation.
Files
GPT-Vape-and-Pregnancy-Project-main.zip
Files
(54.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:fbd053c3d0c7689edc8e53e5bdff83db
|
54.6 MB | Preview Download |