Browse Source

Add sleep

master
Dylan Baker 4 years ago
parent
commit
e0c560a446
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      db/scrape.rb

+ 1
- 1
db/scrape.rb View File

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

Loading…
Cancel
Save