added 250 as a value to the scrape public paste so we can get more pastes
This commit is contained in:
parent
32fd073bf7
commit
07e5c4ac03
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue