The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
ad_candidates: null
ai_follow_images: null
anchors: null
authentication_token: large_string
author: struct<avatar_thumb: struct<height: int64, uri: large_string, url_list: large_list<element: large_st (... 603 chars omitted)
child 0, avatar_thumb: struct<height: int64, uri: large_string, url_list: large_list<element: large_string>, width: int64>
child 0, height: int64
child 1, uri: large_string
child 2, url_list: large_list<element: large_string>
child 0, element: large_string
child 3, width: int64
child 1, common_interest: null
child 2, cover_url: large_list<element: struct<height: int64, uri: large_string, url_list: large_list<element: large_str (... 20 chars omitted)
child 0, element: struct<height: int64, uri: large_string, url_list: large_list<element: large_string>, width: int64>
child 0, height: int64
child 1, uri: large_string
child 2, url_list: large_list<element: large_string>
child 0, element: large_string
child 3, width: int64
child 3, custom_verify: large_string
child 4, enterprise_verify_reason: large_string
child 5, follow_status: int64
child 6, follower_status: int64
child 7, followers_detail: null
child 8, location: large_string
child 9, nickname: large_string
child 10, not_seen_item_id_list: null
child 11, prevent_download: bool
child 12, private_relation_list: null
child 13, sec_uid: large_string
child 14, secret: int64
child 15, sho
...
ld 0, element: struct<data: struct<comment_list: null, extra: large_string, schema: large_string, user_list: null>, (... 19 chars omitted)
child 0, data: struct<comment_list: null, extra: large_string, schema: large_string, user_list: null>
child 0, comment_list: null
child 1, extra: large_string
child 2, schema: large_string
child 3, user_list: null
child 1, key: large_string
child 4, external_events: null
child 5, style: struct<container_number: int64, padding: null>
child 0, container_number: int64
child 1, padding: null
child 6, tracking_info: large_string
child 3, type: int64
child 1, right_label_candidates: null
child 2, strategy: int64
charge_info: struct<has_paid: bool, has_right_text: large_string, is_charge_content: bool, is_delivery: bool, is_ (... 122 chars omitted)
child 0, has_paid: bool
child 1, has_right_text: large_string
child 2, is_charge_content: bool
child 3, is_delivery: bool
child 4, is_subscribe_content: bool
child 5, preview_config: struct<end_time: int64, is_preview: bool, start_time: int64>
child 0, end_time: int64
child 1, is_preview: bool
child 2, start_time: int64
child 6, use_demotion: bool
live_type: large_string
duet_origin_item_id: large_string
simple_promotions: large_string
to
{'aweme_id': Value('large_string'), 'desc': Value('large_string'), 'create_time': Value('int64'), 'author': {'uid': Value('large_string'), 'card_entries': Value('null'), 'nickname': Value('large_string'), 'ban_user_functions': Value('null'), 'sec_uid': Value('large_string'), 'avatar_thumb': {'height': Value('int64'), 'uri': Value('large_string'), 'url_list': LargeList(Value('large_string')), 'width': Value('int64')}, 'profile_mob_params': Value('null'), 'personal_tag_list': Value('null'), 'follow_status': Value('int64'), 'follower_list_secondary_information_struct': Value('null'), 'identity_labels': Value('null'), 'endorsement_info_list': Value('null'), 'custom_verify': Value('large_string'), 'white_cover_url': Value('null'), 'im_role_ids': Value('null'), 'user_permissions': Value('null'), 'batch_unfollow_relation_desc': Value('null'), 'room_data': Value('large_string'), 'share_info': {'share_url': Value('large_string'), 'share_weibo_desc': Value('large_string'), 'share_desc': Value('large_string'), 'share_title': Value('large_string'), 'share_qrcode_url': {'height': Value('int64'), 'uri': Value('large_string'), 'url_list': LargeList(Value('large_string')), 'width': Value('int64')}, 'share_title_myself': Value('large_string'), 'share_title_other': Value('large_string'), 'share_desc_info': Value('large_string')}, 'need_points': Value('null'), 'can_set_geofencing': Value('null'), 'avatar_schema_list': Value('null'), 'enterprise_verify_reason': Value('large_string'), 'is_ad_fake
...
ge_string'), 'paid_episodes': Value('null'), 'series_content_types_new': Value('null'), 'series_icp': {'card_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}, 'disappear_time_sec': Value('int64'), 'font_color': Value('large_string'), 'font_size': Value('int64'), 'horizonal_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}, 'icp_number': Value('large_string'), 'icp_number_split': Value('large_string'), 'start_time_sec': Value('int64'), 'vertical_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}}, 'series_id': Value('large_string'), 'series_name': Value('large_string'), 'series_paid_type_list': Value('null'), 'share_info': {'share_desc': Value('large_string'), 'share_title': Value('large_string'), 'share_title_myself': Value('large_string'), 'share_title_other': Value('large_string'), 'share_url': Value('large_string'), 'share_weibo_desc': Value('large_string')}, 'stats': {'collect_vv': Value('int64'), 'current_episode': Value('int64'), 'play_vv': Value('int64'), 'total_episode': Value('int64'), 'updated_to_episode': Value('int64')}, 'status': {'is_collected': Value('int64'), 'status': Value('int64'), 'status_desc': Value('large_string')}}, 'stickers': Value('large_string'), 'story_source_type': Value('int64'), 'sticker_detail': {'children': Value('null'), 'icon_url': {'uri': Value('large_string'), 'url_list': LargeList(Value('large_string'))}, 'id': Value('large_string'), 'name': Value('large_string'), 'tags': Value('null'), 'user_count': Value('int64')}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2543, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2060, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2083, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 544, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 383, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 180, in _generate_tables
yield Key(file_idx, batch_idx), self._cast_table(pa_table)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 143, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
ad_candidates: null
ai_follow_images: null
anchors: null
authentication_token: large_string
author: struct<avatar_thumb: struct<height: int64, uri: large_string, url_list: large_list<element: large_st (... 603 chars omitted)
child 0, avatar_thumb: struct<height: int64, uri: large_string, url_list: large_list<element: large_string>, width: int64>
child 0, height: int64
child 1, uri: large_string
child 2, url_list: large_list<element: large_string>
child 0, element: large_string
child 3, width: int64
child 1, common_interest: null
child 2, cover_url: large_list<element: struct<height: int64, uri: large_string, url_list: large_list<element: large_str (... 20 chars omitted)
child 0, element: struct<height: int64, uri: large_string, url_list: large_list<element: large_string>, width: int64>
child 0, height: int64
child 1, uri: large_string
child 2, url_list: large_list<element: large_string>
child 0, element: large_string
child 3, width: int64
child 3, custom_verify: large_string
child 4, enterprise_verify_reason: large_string
child 5, follow_status: int64
child 6, follower_status: int64
child 7, followers_detail: null
child 8, location: large_string
child 9, nickname: large_string
child 10, not_seen_item_id_list: null
child 11, prevent_download: bool
child 12, private_relation_list: null
child 13, sec_uid: large_string
child 14, secret: int64
child 15, sho
...
ld 0, element: struct<data: struct<comment_list: null, extra: large_string, schema: large_string, user_list: null>, (... 19 chars omitted)
child 0, data: struct<comment_list: null, extra: large_string, schema: large_string, user_list: null>
child 0, comment_list: null
child 1, extra: large_string
child 2, schema: large_string
child 3, user_list: null
child 1, key: large_string
child 4, external_events: null
child 5, style: struct<container_number: int64, padding: null>
child 0, container_number: int64
child 1, padding: null
child 6, tracking_info: large_string
child 3, type: int64
child 1, right_label_candidates: null
child 2, strategy: int64
charge_info: struct<has_paid: bool, has_right_text: large_string, is_charge_content: bool, is_delivery: bool, is_ (... 122 chars omitted)
child 0, has_paid: bool
child 1, has_right_text: large_string
child 2, is_charge_content: bool
child 3, is_delivery: bool
child 4, is_subscribe_content: bool
child 5, preview_config: struct<end_time: int64, is_preview: bool, start_time: int64>
child 0, end_time: int64
child 1, is_preview: bool
child 2, start_time: int64
child 6, use_demotion: bool
live_type: large_string
duet_origin_item_id: large_string
simple_promotions: large_string
to
{'aweme_id': Value('large_string'), 'desc': Value('large_string'), 'create_time': Value('int64'), 'author': {'uid': Value('large_string'), 'card_entries': Value('null'), 'nickname': Value('large_string'), 'ban_user_functions': Value('null'), 'sec_uid': Value('large_string'), 'avatar_thumb': {'height': Value('int64'), 'uri': Value('large_string'), 'url_list': LargeList(Value('large_string')), 'width': Value('int64')}, 'profile_mob_params': Value('null'), 'personal_tag_list': Value('null'), 'follow_status': Value('int64'), 'follower_list_secondary_information_struct': Value('null'), 'identity_labels': Value('null'), 'endorsement_info_list': Value('null'), 'custom_verify': Value('large_string'), 'white_cover_url': Value('null'), 'im_role_ids': Value('null'), 'user_permissions': Value('null'), 'batch_unfollow_relation_desc': Value('null'), 'room_data': Value('large_string'), 'share_info': {'share_url': Value('large_string'), 'share_weibo_desc': Value('large_string'), 'share_desc': Value('large_string'), 'share_title': Value('large_string'), 'share_qrcode_url': {'height': Value('int64'), 'uri': Value('large_string'), 'url_list': LargeList(Value('large_string')), 'width': Value('int64')}, 'share_title_myself': Value('large_string'), 'share_title_other': Value('large_string'), 'share_desc_info': Value('large_string')}, 'need_points': Value('null'), 'can_set_geofencing': Value('null'), 'avatar_schema_list': Value('null'), 'enterprise_verify_reason': Value('large_string'), 'is_ad_fake
...
ge_string'), 'paid_episodes': Value('null'), 'series_content_types_new': Value('null'), 'series_icp': {'card_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}, 'disappear_time_sec': Value('int64'), 'font_color': Value('large_string'), 'font_size': Value('int64'), 'horizonal_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}, 'icp_number': Value('large_string'), 'icp_number_split': Value('large_string'), 'start_time_sec': Value('int64'), 'vertical_pos': {'x_pos': Value('int64'), 'y_pos': Value('int64')}}, 'series_id': Value('large_string'), 'series_name': Value('large_string'), 'series_paid_type_list': Value('null'), 'share_info': {'share_desc': Value('large_string'), 'share_title': Value('large_string'), 'share_title_myself': Value('large_string'), 'share_title_other': Value('large_string'), 'share_url': Value('large_string'), 'share_weibo_desc': Value('large_string')}, 'stats': {'collect_vv': Value('int64'), 'current_episode': Value('int64'), 'play_vv': Value('int64'), 'total_episode': Value('int64'), 'updated_to_episode': Value('int64')}, 'status': {'is_collected': Value('int64'), 'status': Value('int64'), 'status_desc': Value('large_string')}}, 'stickers': Value('large_string'), 'story_source_type': Value('int64'), 'sticker_detail': {'children': Value('null'), 'icon_url': {'uri': Value('large_string'), 'url_list': LargeList(Value('large_string'))}, 'id': Value('large_string'), 'name': Value('large_string'), 'tags': Value('null'), 'user_count': Value('int64')}}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Douyin Posts Dataset
A dataset of 1,133,545 unique posts from Douyin (Chinese TikTok), collected via snowball sampling of related videos.
Dataset Description
This dataset contains metadata from Douyin short videos, collected by crawling related video recommendations. Starting from seed videos matching specific keywords, the crawler iteratively fetched related videos to build a diverse sample of the platform's content.
Collection Method
- Snowball sampling: Starting from keyword-matched seed videos, related videos were iteratively crawled
- Deduplication: All posts are deduplicated by
aweme_id(unique video identifier) - Partitioning: Data is partitioned by the first 4 digits of
aweme_idfor efficient access
Dataset Structure
The dataset contains 187 columns. Key fields include:
Core Fields
| Field | Type | Description |
|---|---|---|
aweme_id |
string | Unique video identifier |
desc |
string | Video description/caption |
caption |
string | Short caption |
create_time |
int64 | Unix timestamp of video creation |
duration |
int64 | Video duration in milliseconds |
region |
string | Geographic region code |
Engagement Statistics (statistics struct)
| Field | Description |
|---|---|
digg_count |
Number of likes |
comment_count |
Number of comments |
share_count |
Number of shares |
play_count |
Number of views |
collect_count |
Number of saves/bookmarks |
Author Information (author struct)
| Field | Description |
|---|---|
uid |
Author user ID |
nickname |
Display name |
sec_uid |
Secondary user ID |
signature |
Author bio |
follower_status |
Follower relationship status |
Content Metadata
| Field | Type | Description |
|---|---|---|
cha_list |
list | Hashtag/challenge information |
text_extra |
list | Extracted hashtags, mentions, and links |
music |
struct | Audio/music metadata |
video |
struct | Video file metadata (URLs, dimensions, formats) |
poi_info |
struct | Location/point of interest data |
Usage
import polars as pl
from huggingface_hub import hf_hub_download
from pathlib import Path
# Download a single partition
file_path = hf_hub_download(
repo_id="bendavidsteel/douyin",
filename="data/partition_7500.parquet.zstd",
repo_type="dataset"
)
df = pl.read_parquet(file_path)
# Or load all partitions
from huggingface_hub import snapshot_download
local_dir = snapshot_download(
repo_id="bendavidsteel/douyin",
repo_type="dataset",
allow_patterns="data/*.parquet.zstd"
)
df = pl.read_parquet(Path(local_dir) / "data" / "*.parquet.zstd")
File Structure
data/
├── partition_7035.parquet.zstd
├── partition_7040.parquet.zstd
├── ...
└── partition_7551.parquet.zstd
111 partition files, partitioned by the first 4 digits of aweme_id.
Limitations
- Metadata only - does not include actual video/image content
- Point-in-time snapshot - engagement statistics reflect collection time
- Related video sampling may introduce biases toward popular/recommended content
License
CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
- Downloads last month
- 25