steverob / aurs

Anna University Results Scrapper App
0 stars 0 forks source link

#TODO new comment #7

Open debtBot opened 7 years ago

debtBot commented 7 years ago

TODO new comment

Context

  #TODO new comment
    def generate_reg_nos
      reg=@start
      while reg!=@ending+1
        @reg_nos << reg
        reg+=1
      end
    end

    def process_url
      @url.gsub!(File.extname(@url),".aspx")
    end

  public

  def scrape
    puts @reg_nos.inspect
    puts @url
    @reg_nos.each do |reg_no|
      url=@url+"?htno="+reg_no.to_s
      puts url
      doc=Nokogiri::HTML(open(url))
      puts doc
      cells=doc.css("td")
      puts cells

Auto-opened by DebTrakr

debtBot commented 7 years ago

This issue was possibly resolved by 54c1e815194fa1068ac8e1752af966221f3b4a5c