Jump to content

How copy information from website.


Recommended Posts

http://www.antwo.pl/ on right side of it are column with ranking. I want write into log file every time when i refresh my exproler.

$username = redcolor in html code
$points = ; greencolor in html code
_FileWriteLog(@ScriptDir & "daneDodaneOdpowiedzi.log", "Ranking Stats : " &"USER:"&$username&" "&"( "&$points&" )"& " ADRESS: http://www.antwo.pl/")

<a href="profil,1,Niedzielka.html" title="Niedzielka">Niedzielka ( 66690 )</a>

( Dear admin, You do not support people making inconsistent with the rules like hacks/keygens/trojans/bot,

You Have closed only because you thought i will using it for a bot. I, however, I had no idea how to imagine it differently. Now I found this a nice mobile site the Google translate. Interpreters by him.

I can not solve this problem, the rest of the users in the rankings now I start to rewrite and I will learn it.

This will allow me check if they all use the service according to the rules. )

Edited by mojehyip
Link to comment
Share on other sites

Read examples and understand code at

This should do what you need. The rest is a question of parsing HTML in correct way. Basically string functions.

Thanks for answer, but i don't specialy know this language. I don't get it fast. But every day, ranking changing. Could some give another easier way to get information from website to log txt?

Link to comment
Share on other sites

There are several ways to get from IE to AutoIT (or what you actually want: fetch information from a web server), but what you SHOULD focus on is to isolate the information from right-column.

Start by copying HTML source from the page into a variable. Then practice isolating the stuff you need.

The rest (getting HTML data online) is trivial. It's the HTML isolation that can be tricky.

[Edit]: see this example how simple it is:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <INet.au3>
; ==============

; demo to fetch some web page and put content in an Edit box.

; ==============
$Form1 = GUICreate("Form1", 760, 624, 208, 143)
$Edit1 = GUICtrlCreateEdit("", 16, 128, 697, 425, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
GUISetState(@SW_SHOW)

$indhold = _INetGetSource('http://google.com')
GUICtrlSetData($Edit1,$indhold)

; exit after 10 seconds
sleep(10000)
exit
Edited by Myicq

I am just a hobby programmer, and nothing great to publish right now.

Link to comment
Share on other sites

But what command i can get from line:

<a href="profil,1,Niedzielka.html" title="Niedzielka">...</a>

to get Niedzielka(like user iD ) and his points number ?

Once you have the content of the web page, you can - for example - use stringregexp.

there are tutorials on how you can "take small chunk out of bigger chunck". Go study and experiment.

Try now to make some code yourself, OK ? It's best way to learn. There are many examples out there.

I am just a hobby programmer, and nothing great to publish right now.

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