Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DimleX

Pages: [1]
1
RegEx (Regular Expressions) / ScrapeUnexpected error
« on: October 29, 2015, 03:45:30 PM »
Hello!

Have a problem with Scrape action.

This command working properly with simple URL like google.com, but whan I trying something different such as http://www.imdb.com/?ref_=nv_home - it's working only in Regular Expression Helper, when I manually copy-pasting URL with Ctrl+U, but in command builder line it's just resulting me in
Quote
ScrapeUnexpected error: ScrapeUnexpected error:
System.NullReferenceException: Object reference not set to an instance of an object.
   at eval_᜚.eval_ᜂ(String[] A_0)
   at eval_g.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_g.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)

That's what I'm trying to do:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<command id="256" name="RegEx" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Stanton_system&#xD;&#xA;Kallis_system">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://starcitizen.gamepedia.com/Kallis_system</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExSingle</cmdType>
    <params>
      <param>&lt;th&gt;Imports:(.*?)&lt;td&gt;(.*?)&lt;/td&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{Match.1.2}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

Pages: [1]