Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
how to view net http get response for a web spider tutorial
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Robert Klemme, post: 4513137"] Did you mean "parse_journal.rb" instead of "parse_office.rb"? Btw, better use the block form for files: File.open("#{person}_#{friend}.txt","w") |f| f.puts %x[ruby parse_journal.rb #{friend} #{person}] end The easiest would be to issue 5 gets and then sleep for a second. That way you're definitely on the safe side although you sacrifice a bit of performance. Depends on what your bot's requests are. A simple means is to just marshal them into a file or use PStore. No idea. Maybe there's some constant that has to be changed. Did you look into net/http.rb? Kind regards robert [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
how to view net http get response for a web spider tutorial
Top