From 07e5c4ac03c2b6b19d458286592282639381921f Mon Sep 17 00:00:00 2001 From: booboy Date: Sun, 3 Feb 2019 03:18:03 -0600 Subject: [PATCH] added 250 as a value to the scrape public paste so we can get more pastes --- lib/pastebinner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pastebinner.rb b/lib/pastebinner.rb index ba399a9..5c39276 100755 --- a/lib/pastebinner.rb +++ b/lib/pastebinner.rb @@ -100,10 +100,11 @@ class Pastebinner end # params is optional for now. to query specific language ?lang=ruby as an example + # right now its set to grab the max 250, default is 50. param is ?limit=value def scrape_public_pastes(_params = nil) response = RestClient::Request.execute( method: :get, - url: @scraping_api_url + ENDPOINTS[:scraping] + url: @scraping_api_url + ENDPOINTS[:scraping] + '?limit=250' ) end