#include <httpSearch.h>
Public Member Functions | |
cHttpSearch () | |
Constructor. | |
std::string | createURL (std::string title) |
Creates URL to be passed to google. | |
std::string | getHtmlBody (std::string google_url) |
Gets HTML Body returned by google. | |
int | extractLyricsUrl (std::string body) |
Extracts valid URLs from google's results. | |
std::string | extractLyrics (std::string HtmlBody) |
Cleans HTML code from useless tags. | |
std::string | StringsTagRemover (std::string body) |
Cleans HTML code from useless tags. |
|
Constructor. This method create a new cHttpSearch object. This object is used to perform google's search and to extract usable results.
|
|
Creates URL to be passed to google. This method constructs an URL that will be used to perform a google search using currently played song title and the first_url and second_url strings.
|
|
Cleans HTML code from useless tags. This method cleans the given HTML body to permits its correct visualization in main text area.
|
|
Extracts valid URLs from google's results. This method extracts valid URLs from google's result and puts them into vector of cHttpResultsVector class.
|
|
Gets HTML Body returned by google. This method processes the request and gets the body of the page returned by Google. It uses ghttp lib.
|
|
Cleans HTML code from useless tags. This method cleans the given HTML body removing useless strings between certain tags.
|