resolving $INFO[url]
#1
I see this in the imdb scraper:
Code:
<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 Tongue

atm I'm doing this in my code:
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:
Code:
http://$INFO[url]/find?s=tt;q=Fight Club

And now I'm more or less stuck Tongue
Reply
#2
url is a setting, as you can see in GetSettings

$INFO[url] is the value of that setting.
Reply
#3
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 Smile
Reply

Logout Mark Read Team Forum Stats Members Help
resolving $INFO[url]0