app/jobs/github_repo_scraper.rb
# Gets the following:
# - number of stars the project has
# - raw README.md file
#
# Example project's Github url vs raw url
# - Github: https://github.com/rspec/rspec/blob/master/README.md
# - Raw: https://raw.githubusercontent.com/rspec/rspec/master/README.md
Gets the following:
number of stars the project has
raw README.md file


Gets the following : number of stars the project has raw README . md file
def repo_readme_content
      if @github_doc.doc.at('td span:contains("README")')
        raw_file_url = @current_repo.url.gsub('github', 'raw.githubusercontent' +
                          '/master/README.md')
        NokoDoc.new_temp_doc(raw_file_url).css('body p').text
      else
        nil
      end
    end
def repo_readme_content if @github_doc . doc . at ( 'td span:contains("README")' ) raw_file_url = @current_repo . url . gsub ( 'github' , 'raw.githubusercontent' + '/master/README.md' ) NokoDoc . new_temp_doc ( raw_file_url ) . css ( 'body p' ) . text else nil end end
Gets the following:
 number of stars the project has
 raw README.md file
Gets the following : number of stars the project has raw README . md file
# NOTE: Only available on the code subpage of the repo