jc4p commited on
Commit
f087ed1
·
verified ·
1 Parent(s): 3d077f6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +127 -0
README.md ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: Farcaster Links
4
+ ---
5
+
6
+ # Farcaster Public Links Dataset
7
+
8
+ This dataset contains public follow relationships from the Farcaster social protocol that have not been deleted by their authors. The dataset includes comprehensive metadata for each link, allowing for detailed analysis of the social graph in the Farcaster ecosystem.
9
+
10
+ ## Dataset Description
11
+
12
+ The dataset contains the following fields for each active link:
13
+ - `Fid`: The Farcaster ID of the user who created the link
14
+ - `MessageType`: Type of message (all are 'LinkAdd' as deleted links are excluded)
15
+ - `Timestamp`: Seconds since the Farcaster Epoch (January 1, 2021 00:00:00 UTC)
16
+ - `LinkType`: The type of link (primarily 'follow')
17
+ - `TargetFid`: The Farcaster ID of the user being followed
18
+
19
+ ## Timestamp Format
20
+
21
+ Timestamps in this dataset use the Farcaster epoch (seconds since January 1, 2021 00:00:00 UTC).
22
+
23
+ To convert to a standard Unix timestamp:
24
+ 1. Add 1609459200 (Unix timestamp for January 1, 2021 00:00:00 UTC)
25
+ 2. The result will be a standard Unix timestamp
26
+
27
+ Example in Python:
28
+ ```python
29
+ # Convert Farcaster timestamp to Unix timestamp
30
+ unix_timestamp = farcaster_timestamp + 1609459200
31
+
32
+ # Convert to datetime
33
+ from datetime import datetime
34
+ dt = datetime.fromtimestamp(unix_timestamp)
35
+ ```
36
+
37
+ ## Key Statistics
38
+ - Format: Single Parquet file
39
+ - Link types: Primarily 'follow' relationships
40
+ - Dataset includes all non-deleted links from the Farcaster network as of March 21, 2025
41
+
42
+ ## Intended Uses
43
+
44
+ This dataset can be useful for:
45
+ - Analyzing the social graph of the Farcaster network
46
+ - Identifying influential users through follower analysis
47
+ - Studying follow/following patterns and community structures
48
+ - Tracking growth of the network over time
49
+ - Building recommendation algorithms based on social connections
50
+ - Researching information diffusion patterns
51
+ - Creating social network visualizations
52
+ - Analyzing community formation and evolution
53
+
54
+ ## Example Queries
55
+
56
+ Using Python and pandas:
57
+ ```python
58
+ import pandas as pd
59
+ import numpy as np
60
+ from datetime import datetime
61
+
62
+ # Load the dataset
63
+ df = pd.read_parquet('farcaster_links.parquet')
64
+
65
+ # Convert timestamps to datetime
66
+ df['datetime'] = df['Timestamp'].astype(int).apply(
67
+ lambda x: datetime.fromtimestamp(x + 1609459200)
68
+ )
69
+
70
+ # Count followers for each user
71
+ follower_counts = df.groupby('TargetFid').size().sort_values(ascending=False)
72
+
73
+ # Top 20 most followed accounts
74
+ top_followed = follower_counts.head(20)
75
+
76
+ # Analyze follow trends over time
77
+ monthly_follows = df.groupby(df['datetime'].dt.strftime('%Y-%m')).size()
78
+ ```
79
+
80
+ Using DuckDB:
81
+ ```sql
82
+ -- Count followers for each user
83
+ SELECT
84
+ TargetFid,
85
+ COUNT(*) AS follower_count
86
+ FROM 'farcaster_links.parquet'
87
+ GROUP BY TargetFid
88
+ ORDER BY follower_count DESC
89
+ LIMIT 20;
90
+
91
+ -- Find users with most outgoing follows
92
+ SELECT
93
+ Fid,
94
+ COUNT(*) AS following_count
95
+ FROM 'farcaster_links.parquet'
96
+ GROUP BY Fid
97
+ ORDER BY following_count DESC
98
+ LIMIT 20;
99
+
100
+ -- Analyze follow growth by day
101
+ SELECT
102
+ DATE_TRUNC('day', TIMESTAMP '2021-01-01 00:00:00' + (CAST(Timestamp AS BIGINT) * INTERVAL '1 second')) AS follow_date,
103
+ COUNT(*) AS daily_follow_count
104
+ FROM 'farcaster_links.parquet'
105
+ GROUP BY follow_date
106
+ ORDER BY follow_date;
107
+ ```
108
+
109
+ ## Limitations
110
+ - Does not include user profile information
111
+ - Only includes LinkAdd relationships (not other link types)
112
+ - Does not include the content of users' casts
113
+ - Does not include information about user interactions
114
+
115
+ ## Ethics & Privacy
116
+ - This dataset contains only public follow relationships that were publicly accessible on the Farcaster protocol
117
+ - Deleted relationships have been excluded to respect user content choices
118
+ - Personal information beyond public FIDs has been excluded
119
+ - Users should respect Farcaster's terms of service when using this data
120
+ - Researchers should be mindful of potential biases in social media datasets
121
+
122
+ ## License
123
+ MIT License
124
+
125
+ ## Updates
126
+ This dataset represents a snapshot of Farcaster follow relationships as of March 21, 2025. For live data, please refer to the Farcaster protocol directly or check for updated versions of this dataset.
127
+