PDA

View Full Version : resolving $INFO[url]


neuron
2009-01-07, 18:39
I see this in the imdb scraper:

<RegExp input="$$1" output="&lt;url&gt;http://$INFO[url]/find?s=tt;q=\1$$4&lt;/url&gt;" dest="3">


Where's that resolved?

Trying to write a commandline parser, but your not making it easy :P

atm I'm doing this in my code:

m_parser.m_param[0] = "Fight Club";

m_result = m_parser.Parse("CreateSearchUrl");
WriteResult("url.xml");
cout << "URL :" << m_result << "\n";

CScraperUrl srcUrl(m_result);
cout << "URL : " << srcUrl.m_url[0].m_url.c_str() << "\n";

And that produces:

http://$INFO[url]/find?s=tt;q=Fight Club


And now I'm more or less stuck :P

spiff
2009-01-07, 19:01
url is a setting, as you can see in GetSettings

$INFO[url] is the value of that setting.

neuron
2009-01-07, 21:34
Ahh, thank you very much, that cleans up a lot. Searching through for imdb.com to find the url my eyes read that setting as just another regex :)