PotLock / activity-dao

v0, activity DAO landing page and directory.
https://activity.community
2 stars 2 forks source link

add farcaster thread for each activity based on keyword #18

Open codingshot opened 2 weeks ago

codingshot commented 2 weeks ago

-make a client on here

https://docs.neynar.com/reference/search-channels pull from the channels with the most followers and the best match, then pull content in feed and each posts, update to channel master list json

https://docs.neynar.com/reference/channel-details-bulk also maybbe better to index once we have all the channel ids

then reference https://docs.neynar.com/reference/feed-channels to get content in each

curl --request GET \ --url 'https://api.neynar.com/v2/farcaster/channel/search?q=surf&limit=20' \ --header 'accept: application/json' \ --header 'api_key: NEYNAR_API_DOCS'

{ "channels": [ { "object": "channel", "id": "surf", "url": "https://warpcast.com/~/channel/surf", "name": "surf", "image_url": "https://i.imgur.com/hyF5xZG.png", "description": "", "follower_count": 27, "member_count": 1, "created_at": 1707964767, "parent_url": "https://warpcast.com/~/channel/surf", "moderator_fids": [ 2201 ], "lead": { "object": "user", "fid": 2201, "custody_address": "0xd204ddcbcd3ff1dc4e781bbe45c1a80a3417d476", "username": "carlos", "display_name": "Carlos", "pfp_url": "https://i.imgur.com/dwDm3cP.jpg", "profile": { "bio": { "text": "crafting farcaster.in +++" } }, "follower_count": 7672, "following_count": 357, "verifications": [ "0x662d5d79849113a5403af776210307a7c82a5267" ], "verified_addresses": { "eth_addresses": [ "0x662d5d79849113a5403af776210307a7c82a5267" ], "sol_addresses": [ "2UkFtSn3shN9CzY12BFcm5FfUUPjrhXNSDtiYk87gXX5" ] }, "active_status": "inactive", "power_badge": true } }, { "object": "channel", "id": "surfing", "url": "https://farcaster.group/surfing", "name": "Surfing", "image_url": "https://i.imgur.com/HaPjbwa.gif", "description": "Discussions about surfing", "follower_count": 859, "member_count": 42, "pinned_cast_hash": "0x5d81b982f1c0c421fe9126716c269d5a3ede0a1e", "created_at": 1698107816, "parent_url": "https://farcaster.group/surfing", "moderator_fids": [ 451 ], "lead": { "object": "user", "fid": 451, "custody_address": "0xd2344f892241e3a83c7eca8e586093714be8ca7f", "username": "pfista", "display_name": "Michael Pfister", "pfp_url": "https://i.seadn.io/gcs/files/d172183e374ee8690e9b447dadb49b87.gif?w=500&auto=format", "profile": { "bio": { "text": "๐“ต๐“ฒ๐“ฟ๐“ฒ๐“ท๐“ฐ ๐“ฝ๐“ฑ๐“ฎ ๐“ฎ๐“ท๐“ญ๐“ต๐“ฎ๐“ผ๐“ผ ๐“ผ๐“พ๐“ถ๐“ถ๐“ฎ๐“ป โ€ข building @buoy ๐Ÿ›Ÿ โ€ข pfista.com" } }, "follower_count": 241099, "following_count": 680, "verifications": [ "0x8a95d5f9ac0eebd5880199ea8fcd0fae845bbbf2", "0x92382f5c6ad39829a07537d18807462960025725" ], "verified_addresses": { "eth_addresses": [ "0x8a95d5f9ac0eebd5880199ea8fcd0fae845bbbf2", "0x92382f5c6ad39829a07537d18807462960025725" ], "sol_addresses": [] }, "active_status": "inactive", "power_badge": true } }, { "object": "channel", "id": "surfy", "url": "https://warpcast.com/~/channel/surfy", "name": "SURFY", "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/665a97d8-7c68-4b56-e5cd-847cda2a1100/original", "description": "Onchanization of Payment Network in Real World", "follower_count": 96, "member_count": 1, "created_at": 1714637372, "parent_url": "https://warpcast.com/~/channel/surfy", "moderator_fids": [ 416206 ], "lead": { "object": "user", "fid": 416206, "custody_address": "0x645bd488d4c938b75c768f07d54c4b1441201fbd", "username": "boosik.eth", "display_name": "boosik.eth", "pfp_url": "https://i.imgur.com/79H2Xnj.jpg", "profile": { "bio": { "text": "Building /surfy /base-kr | Developer | https://twitter.com/0xboosik |\nhttps://boosik.notion.site | https://medium.com/@boohyunsik | ex) A41, Samsung" } }, "follower_count": 773, "following_count": 311, "verifications": [ "0xe2b597796fd84b27aadaee73d6b40158035b5ecd", "0x8341b0d5d2d2672bf092c7c6a8142530e7ed4c73", "0xb71c3d60f8517a054ff4604887e27c1b9eda8393" ], "verified_addresses": { "eth_addresses": [ "0xe2b597796fd84b27aadaee73d6b40158035b5ecd", "0x8341b0d5d2d2672bf092c7c6a8142530e7ed4c73", "0xb71c3d60f8517a054ff4604887e27c1b9eda8393" ], "sol_addresses": [] }, "active_status": "inactive", "power_badge": false } }, { "object": "channel", "id": "surfshop", "url": "https://warpcast.com/~/channel/surfshop", "name": "Surf Shop Domains ๐Ÿ„โ€โ™‚๏ธ", "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/aff7febb-e740-4c2a-a280-531e44b4b800/original", "description": "SurfShop domains by ๐Ÿ„โ€โ™‚๏ธ๐ŸŒŠ Ride the digital wave with a .surfshop domain ๐ŸŒ๐Ÿ”ฅ Perfect for surf shops and beach brands ๐Ÿ‘‰ kooky.surf/surfshop", "follower_count": 77, "member_count": 74, "created_at": 1720115904, "parent_url": "https://warpcast.com/~/channel/surfshop", "moderator_fids": [ 344886 ], "lead": { "object": "user", "fid": 344886, "custody_address": "0x9931e17c8b0081dbd3e2076ac4ae9913a616e6a1", "username": "kooky", "display_name": "Kooky", "pfp_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/833deb00-9c19-4f76-211f-f12f23d60c00/original", "profile": { "bio": { "text": "I forgot to grow up ๐Ÿ„โ€โ™‚๏ธ kooky.surf" } }, "follower_count": 1183, "following_count": 95, "verifications": [ "0x993e90d65ea79c5e0d7e2c3a099cbeacf7709b2d" ], "verified_addresses": { "eth_addresses": [ "0x993e90d65ea79c5e0d7e2c3a099cbeacf7709b2d" ], "sol_addresses": [] }, "active_status": "inactive", "power_badge": false } }, { "object": "channel", "id": "surfwave", "url": "https://warpcast.com/~/channel/surfwave", "name": "Surfwave Domains ๐ŸŒŠ ๐Ÿ„โ€โ™‚๏ธ", "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/04ef7919-c51f-4db6-e587-3ecf8cff7c00/original", "description": "SurfWave domains by ๐ŸŒŠ Riding the digital wave with a .surfwave domain ๐Ÿ„โ€โ™‚๏ธ๐Ÿ’ป Your brandโ€™s identity deserves to catch the perfect wave ๐ŸŒŸ๐ŸŽฏ Make a splash online ๐Ÿ‘‰ kooky.surf/surfwave", "follower_count": 71, "member_count": 66, "created_at": 1724863896, "parent_url": "https://warpcast.com/~/channel/surfwave", "moderator_fids": [ 344886 ], "lead": { "object": "user", "fid": 344886, "custody_address": "0x9931e17c8b0081dbd3e2076ac4ae9913a616e6a1", "username": "kooky", "display_name": "Kooky", "pfp_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/833deb00-9c19-4f76-211f-f12f23d60c00/original", "profile": { "bio": { "text": "I forgot to grow up ๐Ÿ„โ€โ™‚๏ธ kooky.surf" } }, "follower_count": 1183, "following_count": 95, "verifications": [ "0x993e90d65ea79c5e0d7e2c3a099cbeacf7709b2d" ], "verified_addresses": { "eth_addresses": [ "0x993e90d65ea79c5e0d7e2c3a099cbeacf7709b2d" ], "sol_addresses": [] }, "active_status": "inactive", "power_badge": false } }, { "object": "channel", "id": "surfers", "url": "https://warpcast.com/~/channel/surfers", "name": "surfers", "image_url": "https://i.imgur.com/2Q9802D.png", "description": "", "follower_count": 35, "member_count": 1, "created_at": 1712312399, "parent_url": "https://warpcast.com/~/channel/surfers", "moderator_fids": [ 762427 ], "lead": { "object": "user", "fid": 762427, "custody_address": "0xe85ac08dbd873441708c737d9b2f86d8b7ca85aa", "username": "foezsz", "display_name": "Fร–EZSZ", "pfp_url": "https://supercast.mypinata.cloud/ipfs/QmYZtP2HJ8eaQSt4x9m6RTfk6G6Hi7xwSK1iNmgEmhd79s?filename=Bob-Basset-171ef090f244d14035b0eab2da067404.jpg", "profile": { "bio": { "text": "editor at large" } }, "follower_count": 12, "following_count": 4, "verifications": [], "verified_addresses": { "eth_addresses": [], "sol_addresses": [] }, "active_status": "inactive", "power_badge": false } }, { "object": "channel", "id": "surfcast", "url": "https://warpcast.com/~/channel/surfcast", "name": "surfcast (podcast)", "image_url": "https://i.imgur.com/pRhIRw6.png", "description": "", "follower_count": 32, "member_count": 1, "created_at": 1706731496, "parent_url": "https://warpcast.com/~/channel/surfcast", "moderator_fids": [ 4368 ], "lead": { "object": "user", "fid": 4368, "custody_address": "0x062f6920650c260704f7cfaed32a5047c37f7280", "username": "amado", "display_name": "Alex", "pfp_url": "https://i.imgur.com/UE6a27t.jpg", "profile": { "bio": { "text": "Iโ€™m Alex or the โ€˜$degen cookie guyโ€™. Early-ish to Farcaster and interested in meeting others who share a community oriented mindset! Building /surfcast /analog\n" } }, "follower_count": 3461, "following_count": 879, "verifications": [ "0x8143aad694567424162a949c1580c91d03437858" ], "verified_addresses": { "eth_addresses": [ "0x8143aad694567424162a949c1580c91d03437858" ], "sol_addresses": [ "4JPv678pufcF71FUXvgK1UMK5xdPzm8fgQgFKozUopo3" ] }, "active_status": "inactive", "power_badge": true } }, { "object": "channel", "id": "surfcraft", "url": "https://warpcast.com/~/channel/surfcraft", "name": "surfcraft", "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/fc212baf-fa43-44c7-3491-c00b9599be00/original", "description": "heady boards only", "follower_count": 16, "member_count": 3, "created_at": 1721844965, "parent_url": "https://warpcast.com/~/channel/surfcraft", "moderator_fids": [ 3484 ], "lead": { "object": "user", "fid": 3484, "custody_address": "0x0546377d6093b8c33a1633065a2c5750f070ab30", "username": "st3ve", "display_name": "st3ve.eth", "pfp_url": "https://i.imgur.com/FJsq55N.jpg", "profile": { "bio": { "text": "building on-chain multiplayer at @partydao" } }, "follower_count": 1323, "following_count": 399, "verifications": [ "0x8a333a18b924554d6e83ef9e9944de6260f61d3b" ], "verified_addresses": { "eth_addresses": [ "0x8a333a18b924554d6e83ef9e9944de6260f61d3b" ], "sol_addresses": [] }, "active_status": "inactive", "power_badge": true } } ], "next": { "cursor": null } }