Vkontakte html & parse

This commit is contained in:
magnolia-fan
2011-04-10 04:15:29 +04:00
parent 2e762a7674
commit 1494e81fa7
6 changed files with 70 additions and 264 deletions
+1
View File
@@ -8,6 +8,7 @@ class ArtistController < ApplicationController
name = params[:name].gsub('+', ' ').gsub('%20', ' ')
end
@artist = Artist.getByName(name)
pp @artist
end
end
+6
View File
@@ -2,6 +2,12 @@ class TrackController < ApplicationController
require 'net/http'
require 'uri'
def listen
artist = 'The White Stripes'
track = 'Blue Orchid'
length = 157
Vkontakte.get(artist, track, length)
render :json => 0
end
end