Jump to content

Recommended Posts

Posted (edited)

Any ideas why this returns blank? Is it because of the quotes in the friend id line?

CODE
#include <INet.au3>

#include<String.au3>

$userid = "tom"

$profile = 'www.myspace.com/' & $userid

$values = _StringBetween(_INetGetSource($profile), 'friendid=', '" id=')

MsgBox(0, "User ID:", "User ID is " & $values)

Edited by DigitalLocksmith
Posted

_StringBetween() returns an array, not a string.

Try this:

#include <INet.au3>
#include<String.au3>
#include <Array.au3>

$userid = "tom"
$profile = 'www.myspace.com/' & $userid
$values = _StringBetween(_INetGetSource($profile), 'friendid=', '" id=')
_ArrayDisplay( $values, "$values" )

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
  • Recently Browsing   0 members

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