소스 검색

Add sleep

master
Dylan Baker 4 년 전
부모
커밋
e0c560a446
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      db/scrape.rb

+ 1
- 1
db/scrape.rb 파일 보기

@@ -83,7 +83,7 @@ def scrape(first: 0, last: 0)
83 83
     threads = parse_threads(page)
84 84
     threads.each do |t|
85 85
       puts t[:title]
86
-
86
+      sleep(1)
87 87
       page = fetch_thread(t, cookie)
88 88
       first_post = page.at_css('.postinfo:first-child')
89 89
 

Loading…
취소
저장