added 250 as a value to the scrape public paste so we can get more pastes

This commit is contained in:
booboy 2019-02-03 03:18:03 -06:00
parent 32fd073bf7
commit 07e5c4ac03

View file

@ -100,10 +100,11 @@ class Pastebinner
end end
# params is optional for now. to query specific language ?lang=ruby as an example # 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) def scrape_public_pastes(_params = nil)
response = RestClient::Request.execute( response = RestClient::Request.execute(
method: :get, method: :get,
url: @scraping_api_url + ENDPOINTS[:scraping] url: @scraping_api_url + ENDPOINTS[:scraping] + '?limit=250'
) )
end end