app/utilities.rb
# pull out the id of each property from the link
pull out the id of each property from the link
pull out the id of each property from the link
def pull_out_ids(links)
  puts "pull_out_ids"
  links.each do |link|
    post_id = get_url_id(link['href'])
    next if post_id.nil?
    if reached_max_num_ids_to_scrape
      @finished_scraping_new_post_ids = true
      break
    end
    @ids_to_process << post_id
    @num_ids_scraped += 1
  end
end
def pull_out_ids ( links ) puts "pull_out_ids" links . each do | link | post_id = get_url_id ( link [ 'href' ] ) next if post_id . nil? if reached_max_num_ids_to_scrape @finished_scraping_new_post_ids = true break end @ids_to_process << post_id @num_ids_scraped += 1 end end
pull out the id of each property from the link
pull out the id of each property from the link
# puts "- link = #{link}; href = #{link['href']}" # puts "- post_id = #{post_id}" #@status.save_new_posting_to_process(post_id)
links