From cf6de782e0cf341d32ea1e1b8848d36cafceb037 Mon Sep 17 00:00:00 2001 From: Valentine Date: Wed, 21 Feb 2024 06:15:17 +0300 Subject: [PATCH] add follows to docs --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 5d4f3b9..718bc81 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ You can use this library to get tweets, profiles, and trends trivially. - [Get profile](#get-profile) - [Search profile](#search-profile) - [Get trends](#get-trends) + - [Get following](#get-following) + - [Get followers](#get-followers) - [Connection](#connection) - [Proxy](#proxy) - [HTTP(s)](#https) @@ -332,6 +334,30 @@ profiles, cursor, err := scraper.FetchSearchProfiles("taylorswift13", 20, cursor trends, err := scraper.GetTrends() ``` +### Get following + +> [!IMPORTANT] +> Requires authentication! + +500 requests / 15 minutes + +```golang +var cursor string +users, cursor, err := testScraper.FetchFollowing("Support", 20, cursor) +``` + +### Get followers + +> [!IMPORTANT] +> Requires authentication! + +50 requests / 15 minutes + +```golang +var cursor string +users, cursor, err := testScraper.FetchFollowers("Support", 20, cursor) +``` + ## Connection ### Proxy