Jump to content
Ketarin forum
Flow

Problems with Real Temp

Recommended Posts

Hi there, 

i am new to Ketarin and try to learn how it works. 

now i am stucked with Real Temp:

https://www.techpowerup.com/download/techpowerup-real-temp/

i figured out the id & server_id from post data, but when i try to load the content in the variables screen, all i got is: "PK"

the Plugin from the Database from 2018 shows the same error.

I searched the forum, but maybe i missed something. 

Can you give me a hint?

XML:

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="94f45156-e18e-4eb2-a0c0-b02426151c28">
    <WebsiteUrl>http://www.techpowerup.com/gpuz/</WebsiteUrl>
    <UserAgent />
    <UserNotes />
    <LastFileSize>5260456</LastFileSize>
    <LastFileDate>2018-09-25T12:45:17.8899107</LastFileDate>
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate>2018-09-26T22:19:09</DownloadDate>
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>version</VariableChangeIndicator>
    <HashVariable />
    <HashType>None</HashType>
    <CanBeShared>false</CanBeShared>
    <ShareApplication>true</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <SetupInstructions />
    <Variables>
      <item>
        <key>
          <string>url</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex>(?&lt;=Alternate Sources.*?\&lt;a .*?href\=\").+?(?=\")</Regex>
            <Url>http://www.techpowerup.com/downloads/{url1}/mirrors.php</Url>
            <TextualContent>{download}</TextualContent>
            <Name>url</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>&lt;h3&gt;(.+?) &lt;span&gt;</Regex>
            <Url>https://www.techpowerup.com/download/techpowerup-real-temp/</Url>
            <StartText>TechPowerUp GPU-Z v</StartText>
            <EndText>&lt;</EndText>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>appcat</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:regexreplace: \(.*\):}</TextualContent>
            <Name>appcat</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>appfile</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:multireplace:|:(|)| :|_|_}</TextualContent>
            <Name>appfile</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>server</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=server_id.*?value\=\").+?(?=\".*?closest to you)</Regex>
            <PostData>id=%7bid%7d</PostData>
            <Url>https://www.techpowerup.com/download/techpowerup-real-temp/#</Url>
            <Name>server</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>id</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=file clearfix expanded.*?value\=\").+?(?=\")</Regex>
            <Url>https://www.techpowerup.com/download/techpowerup-real-temp/</Url>
            <Name>id</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>download</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(http[^']*zip)</Regex>
            <PostData>id=%7bid%7d&amp;server_id=%7bserver%7d</PostData>
            <Url>https://www.techpowerup.com/download/file clearfix expanded/#</Url>
            <Name>download</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <Category>System</Category>
    <SourceType>FixedUrl</SourceType>
    <PreviousLocation />
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <LastUpdated>2018-09-25T12:45:17.8899107</LastUpdated>
    <TargetPath />
    <FixedDownloadUrl>{url}</FixedDownloadUrl>
    <Name>Real Temp (Portable )</Name>
  </ApplicationJob>
</Jobs>

Share this post


Link to post
Share on other sites

It looks like this is a problem with that specific site. The content returned in {download} is the actual file so parsing for http[^']*zip isn't going to get you anywhere. Unfortunately, since that request is being POSTed to the server Ketarin can't (currently) perform the download natively. You can shell use the pre-download script to download it using an external system like wget, curl, powershell, or any other utility that has the ability to POST and download. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.