Jump to content

read info from page and copy for variable


mud409
 Share

Recommended Posts

I've set this script up to check the file size of a file and if different download the file. I'd like to change it slightly, right now I'm using Inetgetsize to read filesize. what I'd like to do is check some info stored on the developers site that indicates the file has been updated.

http://kaillera.movsq.net/?dltxt

I'd like to copy each of these lines and put each one in a variable so I can compare it to other variables to see if there's a difference.... any suggestions?

Edited by mud409
Link to comment
Share on other sites

StringSplit should help you. but dont give @CRLF as a delimeter, because you will receive blank lines, just make it like

$source=_INetGetSource('http://kaillera.movsq.net/?dltxt')

$source=StringStripCR($source)

$source=StringSplit($source, char(10))

:D You will get each line in an next cell of array :P

Edited by Uriziel01
Link to comment
Share on other sites

What do you mean "check the page" ? _INetGetSource will read the page source.

#include <INet.au3>
#include <String.au3>
#include <array.au3>
$source=_INetGetSource('http://kaillera.movsq.net/?dltxt')
$source=StringStripCR($source)
$source=StringSplit($source, chr(10))
_ArrayDisplay($source,"ppp")

working code :D

Edited by Uriziel01
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...