Commits

Petar Stanev  committed c649a58

h14/h15

  • Participants
  • Parent commits 65e1f15

Comments (0)

Files changed (1)

File h15/netaa.rb

+require 'net/http'
+
+
+source = Net::HTTP.get('data.bg', '/index.html')
+f=File.new("code.txt","w")
+f.write(source)
+f.close
+file = File.read("code.txt")
+result = file.scan(/<a href=\".*?\"/)
+result.each do |r|
+	p r[9..-2]
+end