jc4p commited on
Commit
3271ff7
·
verified ·
1 Parent(s): bb24e38

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -17
README.md CHANGED
@@ -5,44 +5,114 @@ pretty_name: Farcaster Casts
5
 
6
  # Farcaster Public Casts Dataset
7
 
8
- This dataset contains 13,166,620 public casts (posts) from the Farcaster social protocol, spanning from October 13, 2023 to February 14, 2025.
9
 
10
  ## Dataset Description
11
 
12
  The dataset contains the following fields for each cast:
13
- - `timestamp`: When the cast was created
14
- - `fid`: The Farcaster ID of the user who created the cast
15
- - `hash`: The unique hash identifier of the cast
16
- - `text`: The text content of the cast
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  ## Key Statistics
19
- - Total number of casts: 13,166,620
20
- - Date range: 2023-10-13 15:41:13 UTC to 2025-02-14 05:33:15 UTC
21
  - Format: Single Parquet file
 
22
 
23
  ## Intended Uses
 
24
  This dataset can be useful for:
25
- - Analyzing Farcaster conversations and trends
 
 
26
  - Training language models on social media discourse
27
- - Studying the growth and evolution of the Farcaster network
28
- - Research on decentralized social protocols
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  ## Limitations
31
- - Contains only public casts
32
  - Does not include user profile information
33
- - Does not include reactions, recasts, or replies structure
34
- - Limited to text content (no images or other media)
35
 
36
  ## Ethics & Privacy
37
  - This dataset contains only public casts that were publicly accessible on the Farcaster protocol
 
38
  - Personal information beyond public FIDs has been excluded
39
  - Users should respect Farcaster's terms of service when using this data
40
-
41
- ## Citation & Attribution
42
- If you use this dataset in your research, please provide attribution to the Farcaster protocol and community.
43
 
44
  ## License
45
  MIT License
46
 
47
  ## Updates
48
- This is a static snapshot of Farcaster casts. For live data, please refer to the Farcaster protocol directly.
 
5
 
6
  # Farcaster Public Casts Dataset
7
 
8
+ This dataset contains 157,054,986 public casts (posts) from the Farcaster social protocol that have not been deleted by their authors. The dataset includes comprehensive metadata for each cast, allowing for detailed analysis of the Farcaster ecosystem.
9
 
10
  ## Dataset Description
11
 
12
  The dataset contains the following fields for each cast:
13
+ - `Fid`: The Farcaster ID of the user who created the cast
14
+ - `MessageType`: Type of message (all are 'CastAdd' as deleted casts are excluded)
15
+ - `Timestamp`: Seconds since the Farcaster Epoch (January 1, 2021 00:00:00 UTC)
16
+ - `Hash`: The unique hash identifier of the cast
17
+ - `SignatureScheme`: The cryptographic signature scheme used
18
+ - `Signature`: Cryptographic signature of the cast
19
+ - `Signer`: The public key of the signer
20
+ - `Text`: The text content of the cast
21
+ - `Mentions`: User mentions included in the cast
22
+ - `ParentCastId`: ID of the parent cast if this is a reply
23
+ - `ParentUrl`: URL of external content if this cast is a reply to external content
24
+ - `Embeds`: JSON object containing any embedded content (URLs, images, etc.)
25
+
26
+ ## Timestamp Format
27
+
28
+ Timestamps in this dataset use the Farcaster epoch (seconds since January 1, 2021 00:00:00 UTC).
29
+
30
+ To convert to a standard Unix timestamp:
31
+ 1. Add 1609459200 (Unix timestamp for January 1, 2021 00:00:00 UTC)
32
+ 2. The result will be a standard Unix timestamp
33
+
34
+ Example in Python:
35
+ ```python
36
+ # Convert Farcaster timestamp to Unix timestamp
37
+ unix_timestamp = farcaster_timestamp + 1609459200
38
+
39
+ # Convert to datetime
40
+ from datetime import datetime
41
+ dt = datetime.fromtimestamp(unix_timestamp)
42
+ ```
43
 
44
  ## Key Statistics
45
+ - Total number of casts: 157,054,986
 
46
  - Format: Single Parquet file
47
+ - Dataset includes all non-deleted casts from the Farcaster network as of February 28, 2025
48
 
49
  ## Intended Uses
50
+
51
  This dataset can be useful for:
52
+ - Analyzing conversation patterns and social interactions on Farcaster
53
+ - Studying reply chains and community formation through mentions and replies
54
+ - Tracking the evolution of discussions and trends
55
  - Training language models on social media discourse
56
+ - Analyzing embedded content sharing patterns
57
+ - Researching decentralized social network growth and user behavior
58
+ - Creating classifiers of likelihood of a cast going viral
59
+ - Building network graphs of Farcaster users based on interactions
60
+
61
+ ## Example Queries
62
+
63
+ Using Python and pandas:
64
+ ```python
65
+ import pandas as pd
66
+ import numpy as np
67
+ from datetime import datetime
68
+
69
+ # Load the dataset
70
+ df = pd.read_parquet('casts.parquet')
71
+
72
+ # Convert timestamps to datetime
73
+ df['datetime'] = df['Timestamp'].astype(int).apply(
74
+ lambda x: datetime.fromtimestamp(x + 1609459200)
75
+ )
76
+
77
+ # Count casts per month
78
+ monthly_counts = df.groupby(df['datetime'].dt.strftime('%Y-%m')).size()
79
+
80
+ # Find most active users
81
+ top_users = df.groupby('Fid').size().sort_values(ascending=False).head(10)
82
+
83
+ # Analyze reply chains
84
+ reply_percentage = (df['ParentCastId'].notna().sum() / len(df)) * 100
85
+ ```
86
+
87
+ Using DuckDB:
88
+ ```sql
89
+ -- Count casts by day
90
+ SELECT
91
+ DATE_TRUNC('day', TIMESTAMP '2021-01-01 00:00:00' + (CAST(Timestamp AS BIGINT) * INTERVAL '1 second')) AS cast_date,
92
+ COUNT(*) AS daily_cast_count
93
+ FROM 'casts.parquet'
94
+ GROUP BY cast_date
95
+ ORDER BY cast_date;
96
+
97
+ -- Find casts with external links
98
+ SELECT * FROM 'casts.parquet'
99
+ WHERE Embeds LIKE '%url%'
100
+ LIMIT 100;
101
+ ```
102
 
103
  ## Limitations
 
104
  - Does not include user profile information
105
+ - Does not include reactions or other engagement metrics
 
106
 
107
  ## Ethics & Privacy
108
  - This dataset contains only public casts that were publicly accessible on the Farcaster protocol
109
+ - Deleted casts have been excluded to respect user content choices
110
  - Personal information beyond public FIDs has been excluded
111
  - Users should respect Farcaster's terms of service when using this data
112
+ - Researchers should be mindful of potential biases in social media datasets
 
 
113
 
114
  ## License
115
  MIT License
116
 
117
  ## Updates
118
+ This dataset represents a snapshot of Farcaster casts as of February 28, 2025. For live data, please refer to the Farcaster protocol directly or check for updated versions of this dataset.