From 10fa0688a5c15052c3055b8351164f23d4bc7876 Mon Sep 17 00:00:00 2001 From: Galen Reich <54807169+GalenReich@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:32:45 +0000 Subject: [PATCH] Add explicit www. to api endpoint --- RPST GUI/RPST/ApiHandler.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RPST GUI/RPST/ApiHandler.vb b/RPST GUI/RPST/ApiHandler.vb index 8410da9..d2a56d4 100644 --- a/RPST GUI/RPST/ApiHandler.vb +++ b/RPST GUI/RPST/ApiHandler.vb @@ -16,7 +16,7 @@ Public Class ApiHandler ''' ''' Json object containing scraped data. Public Async Function ScrapeRedditAsync(subreddit As String, listing As String, limit As Integer, timeframe As String) As Task(Of JObject) - Dim ApiEndpoint As String = $"https://reddit.com/r/{subreddit}/{listing}.json?limit={limit}&t={timeframe}" + Dim ApiEndpoint As String = $"https://www.reddit.com/r/{subreddit}/{listing}.json?limit={limit}&t={timeframe}" Return Await GetJObjectFromEndpointAsync(endpoint:=ApiEndpoint) End Function