Jump to content

Help to get some datas of IE


AndreM
 Share

Recommended Posts

Hi, (sorry for my bad inglish) I am recent user of AutoIt and need a help please. 

I need to get this datas of website using Internet Explorer, the datas its marked marked with the red line:

elements.jpg

 

I'm trying use this code:

#include <IE.au3>
#include <FileConstants.au3>


$sFileName = @ScriptDir &"\LOG.txt"
$hFilehandle = FileOpen($sFileName, $FO_APPEND )


$oIE = _IECreate ("https://csgo500.com/")


$tags = $oIE.document.getElementsByTagName("div")

For $tag in $tags
    $class_value1 = $tag.id
    $class_value2 = $tag.className

      FileWrite($hFilehandle, @CRLF &$class_value1)
      FileWrite($hFilehandle, @CRLF &$class_value2)


Next

_IEQuit ($oIE)

 

But all I can get is this:

maintenance


maintenance-logo

maintenance-messages
interface-wrapper

rewardModal
modal-fullscreen

modal-content centered

row modal-greybox

col s12 m4

modal-reward-box clickable

reward-image

reward-title

reward-description

col s12 m4

modal-reward-box clickable

reward-image

reward-title

reward-description

col s12 m4

modal-reward-box clickable

reward-image

reward-title

reward-description
duel-modal
modal modal-fixed-footer

modal-content

create-duel

row

col s3 h-duel-type

col s9

row

col s3 h-duel-color

col s9

row

col s3 h-duel-bux

col s9

row
chat-wrapper

chat-logo

social

chat-players

chat

chat-more
noselect
language-selector

chat-input-wrapper

nav-border

content-wrapper

top-content

site-notifications

hash

content-wheel

content-wheel-pointer

wheel-pointer
noselect
content-wheel-canvas-wrapper

content-wheel-canvas
noselect
wheel

content-wheel-balance


row

col s3
balance-wrapper

bet-button-wrapper

autobetter-toggle
bet-button noselect
content-wheel-autobetter


row

col s3

autobetter










content-wheel-timer

wheel-timer

content-past-queue


row

offset-s6 col s6

pq-wrapper
past-queue

past-queue-wrapper

past-queue-more

content-mybets
row

col s3
my-bets-2x-wrapper
my-bets

col s3
my-bets-3x-wrapper
my-bets

col s3
my-bets-5x-wrapper
my-bets

col s3
my-bets-50x-wrapper
my-bets
content-allbets
row
all-bets-2x-wrapper
col s3

bets-bttns-wrap
bet-btn-2x
bet-btn noselect
bet-btn-2x-disabled
bet-btn-disabled noselect
all-bets-2x-total-wrapper
all-bets-content-total

all-bets-left-wrapper

all-bets-right-wrapper
all-bets-2x
all-bets
all-bets-3x-wrapper
col s3

bets-bttns-wrap
bet-btn-3x
bet-btn noselect
bet-btn-3x-disabled
bet-btn-disabled noselect
all-bets-3x-total-wrapper
all-bets-content-total

all-bets-left-wrapper

all-bets-right-wrapper
all-bets-3x
all-bets
all-bets-5x-wrapper
col s3

bets-bttns-wrap
bet-btn-5x
bet-btn noselect
bet-btn-5x-disabled
bet-btn-disabled noselect
all-bets-5x-total-wrapper
all-bets-content-total

all-bets-left-wrapper

all-bets-right-wrapper
all-bets-5x
all-bets
all-bets-50x-wrapper
col s3

bets-bttns-wrap
bet-btn-50x
bet-btn noselect
bet-btn-50x-disabled
bet-btn-disabled noselect
all-bets-50x-total-wrapper
all-bets-content-total

all-bets-left-wrapper

all-bets-right-wrapper
all-bets-50x
all-bets

row duel-filters-row

col s9
duel-balance-wrapper
noselect

duel-balance-inner

col s3
duels-grid
row

grid

row content-title

col s12

row content-subtitle

col s12

row

col s12
account-details

account-username

account-level

account-level-bar-wrapper

account-level-bar



account-withdrawlocked

account-withdraw-bar-wrapper

account-withdraw-bar




row
trade-url-wrapper
col s12
trade-url-submit
slim-content-btn noselect
trade-url-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
send-wrapper
col s12
send-submit
slim-content-btn noselect
send-recaptcha
fixed-recaptcha hide
inner-send-recaptcha

send-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

row last-10-stuff

col s12

content-section-title
bet-refresh-wrapper

bet-refresh
slim-content-btn noselect
bet-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

col s12

content-section-title
transaction-refresh-wrapper

transaction-refresh
slim-content-btn noselect
transaction-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

col s12

content-section-title
sends-refresh-wrapper

sends-refresh
slim-content-btn noselect
sends-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

col s6

content-section-title
duel-refresh-wrapper

duel-refresh
slim-content-btn noselect
duel-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

steam-status

row content-title

col s12

row
inventory-refresh-wrapper
col s12
inventory-refresh
slim-content-btn noselect
inventory-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
inventory-wrapper

inventory-search-wrapper
col s12
inventory-search
slim-content-btn noselect
inventory-search-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
inventory-item-section
cf
inventory

inventory-6896654118
inventory-item noselect

item-image-wrapper

item-price
inventory-6779922926
inventory-item noselect

item-image-wrapper

item-price
inventory-12582188079
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6760273189
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6760271492
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-7606322506
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9429874139
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6694617024
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6344756357
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-5152630389
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9401122755
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-12893196495
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-10802414449
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-13333498329
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-11196649952
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-10566185710
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-10374334995
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8561848442
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-7347034128
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6896608566
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-6823044826
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-13326254942
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-12987044403
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-12906829938
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-12598938928
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-10904655251
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-10028856412
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9896092443
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9732890527
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9565382997
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9357572364
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-9011811140
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8861466235
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8838285466
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8683167046
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8443806225
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8275640933
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8174580783
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-8141836100
inventory-item-faded noselect

item-image-wrapper

item-price
inventory-checkout

inventory-empty

inventory-checkout-amount-wrapper
noselect
inventory-checkout-wrapper

inventory-checkout-deposit
content-btn noselect
inventory-checkout-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

row content-title

col s12

maintenance

maintenance-messages

no-maintenance

steam-status

row
shop-refresh-wrapper
col s12
shop-refresh
slim-content-btn noselect
shop-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
shop-wrapper

shop-search-wrapper
col s12
shop-search
slim-content-btn noselect
shop-search-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
shop-sort
slim-filter-btn noselect
shop-sort-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
shop-filter
dropdown-button slim-filter-btn noselect
shop-filter-dropdown
dropdown-content
shop-filter-0
shop-drop-btn noselect
shop-filter-1
shop-drop-btn noselect
shop-filter-2
shop-drop-btn noselect
shop-filter-3
shop-drop-btn noselect
shop-filter-4
shop-drop-btn noselect
shop-filter-5
shop-drop-btn noselect
shop-pagination-top


shop-previous-wrapper

slim-content-btn shop-previous noselect

shop-previous-loader preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

shop-next-wrapper

shop-next slim-content-btn noselect

shop-next-loader preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
shop-checkout-amount-wrapper
noselect
shop-item-section

shop

shop-checkout

shop-empty

shop-pagination-bottom


shop-previous-wrapper

slim-content-btn shop-previous noselect

shop-previous-loader preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

shop-next-wrapper

shop-next slim-content-btn noselect

shop-next-loader preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
shop-checkout-wrapper

shop-checkout-withdraw
content-btn noselect
shop-checkout-recaptcha
fixed-recaptcha hide
inner-withdraw-recaptcha

shop-checkout-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

row content-title

col s12
content-rewards-verfication


row

col s12


verify-submit
content-btn noselect
verify-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
content-rewards-daily


row content-subtitle

col s12

row
rewards-wrapper
col s12
referral-claim
reward-box

reward-title
referral-claim-description

referral-claim-level

referral-claim-submit
content-btn noselect
referral-claim-submit-disabled
content-btn-disabled noselect
referral-claim-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
reward-claim
reward-box

reward-title
reward-weekend

reward-claim-description

daily-reward-recaptcha
hide
reward-claim-submit
content-btn noselect
reward-claim-submit-disabled
content-btn-disabled noselect
reward-claim-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
notif-claim
reward-box

reward-title
notif-reward-description
reward-description

notif-description

reward-bottom-container
twitter-reward-claim
reward-box

reward-title

reward-description reward-info

description

reward-bottom-container
fb-reward-claim
reward-box

reward-title

reward-description reward-info

description

reward-bottom-container
vk-reward-claim
reward-box

reward-title

reward-description reward-info

description

reward-bottom-container
dynamicGiveawaysContainer


content-title

col s12 reward-disclaimer
dynamicGiveaways


col-s12 reward-disclaimer bottom
content-rewards-referrals

redeem-wrapper
row

col s12
redeem-submit
slim-content-btn noselect
redeem-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle
referral-wrapper
row

col s12
referral-submit
slim-content-btn noselect
referral-loader
preloader-wrapper active

spinner-layer red-preloader

circle-clipper left

circle

gap-patch

circle

circle-clipper right

circle

row content-title

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12



row

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12

row

col s12
modal-recaptcha
fixed-recaptcha hide
inner-modal-recaptcha

modal-iframe
modal-iframe fixed-iframe hide

hiddendiv common
85e885c2-1c42-7436-b2b9-56616cdb95c5
material-tooltip

backdrop

 

Please HELP me :(

Thanks!

LOG.txt

Link to comment
Share on other sites

Close...here is a way to limit the div's you select....you can also instead get all the child elements, and loop through those...

$oDiv = _IEGetObjById($oIE,"past-queue-wrapper")
$oChildDivs = _IETagNameAllGetCollection($oDiv,"div")
For $oChildDiv In $oChildDivs
    ConsoleWrite($oChildDiv.classname & @TAB & $ochilddiv.id & @CRLF)
Next

 

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

29 minutes ago, jdelaney said:

Close...here is a way to limit the div's you select....you can also instead get all the child elements, and loop through those...

$oDiv = _IEGetObjById($oIE,"past-queue-wrapper")
$oChildDivs = _IETagNameAllGetCollection($oDiv,"div")
For $oChildDiv In $oChildDivs
    ConsoleWrite($oChildDiv.classname & @TAB & $ochilddiv.id & @CRLF)
Next

 

--> IE.au3 T3.0-2 Error from function _IETagNameAllGetCollection, $_IESTATUS_NoMatch
"C:\Users\Andre\Desktop\Scripts\Teste 4 - Elemento by class\Teste4.au3" (15) : ==> Variable must be of type "Object".:
For $oChildDiv In $oChildDivs
For $oChildDiv In $oChildDivs^ ERROR
>Exit code: 1    Time: 1.598

 

Other problem =/ and I don't know how to fix it too kkk

Link to comment
Share on other sites

2 hours ago, Danp2 said:

Change _IETagNameAllGetCollection to _IETagNameGetCollection. B)

 

I tried this:

#include <IE.au3>
#include <FileConstants.au3>

$oIE = _IECreate ("https://mywebsite.com/")


$oDiv = _IEGetObjById($oIE,"past-queue-wrapper")
$oChildDivs = _IETagNameGetCollection($oDiv,"div")
For $oChildDiv In $oChildDivs
    ConsoleWrite($oChildDiv.classname & @TAB & $ochilddiv.id & @CRLF)
Next


_IEQuit ($oIE)

But no data was printed :(

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Andre\Desktop\Scripts\Teste 4 - Elemento by class\Teste4.au3"    
>Exit code: 0    Time: 1.807

 

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...