Skip to content

Commit

Permalink
attempting to avoid captcha/ratelimiting (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonneutert authored Jun 22, 2023
1 parent 0502755 commit a867537
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fundgrube.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
offset offset
run 0]
(let [api-data (extract-json-body (get-postings url limit offset))]
(Thread/sleep 5000) ;; avoid rate limiting
(cond
(= run virtual-limit) collection
(empty? (:postings api-data)) collection
Expand Down

0 comments on commit a867537

Please sign in to comment.