Get HTML Code

Discuss RoboTask here
Post Reply
wimaza
Posts: 2
Joined: Sat Jun 13, 2020 6:12 pm

Get HTML Code

Post by wimaza »

Hi team,

I'm trying to get the full HTML code from a website.

I used "CEF Web Page Information", add a web address, select "Get HTML Code of the Page", but I'dont know what to write in the "Space blank" under "Get HTML code".

I run the taksk, open de web page....but nothing is saving to any file.

Can you please helpme on this
(i'm running the 7.8.6.1009 x86 version)
Attachments
Captura.JPG
Captura.JPG (36.26 KiB) Viewed 9968 times
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Get HTML Code

Post by Oleg »

....but I'dont know what to write in the "Space blank" under "Get HTML code".
Type variable name where you want to save HTML code

Look at my example below.
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1163085779
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task1206"
Hide=INTEGER|0
ID=INTEGER|42149328
LogOnAsUser=INTEGER|1
Name=STRING|"Get HTML code"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER

[Actions\Action1]
ActionID=STRING|"A_CEF_PAGEINFO"
Enabled=INTEGER|-1
Name=STRING|"CEF Web Page Information"
Params=FOLDER

[Actions\Action1\Params]
address=STRING|"www.google.cl"
autodownload=STRING|"0"
autologon=STRING|"0"
framecount=STRING|"0"
framevar=STRING|"-1"
gethtml=STRING|"1"
getlinks=STRING|"0"
gettext=STRING|"0"
geturl=STRING|"0"
hide=STRING|"0"
htmlvar=STRING|"MyVar"
keep=STRING|"1"
overwrite=STRING|"0"
password=STRING|"UmA2zrXORlUJC4x3U8ItOsf+G1UdewLUHCWGeijJuytMwAdME3JM0D83MkCVD5ZJfAxNMPzBUJQ="
referrer=STRING|"1"

[Actions\Action2]
ActionID=STRING|"A_FILE_TEXTWRITE"
Enabled=INTEGER|-1
Name=STRING|"Create text file {TempDir}\html.txt"
Params=FOLDER

[Actions\Action2\Params]
encode=STRING|"0"
fileexists=STRING|"0"
filname=STRING|"{TempDir}\html.txt"
line0=STRING|"{MyVar}"
linecount=STRING|"1"
suppress=STRING|"0"

[Actions\Action3]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""html.txt """
Params=FOLDER

[Actions\Action3\Params]
ifnonzero=STRING|"0"
program=STRING|"{TempDir}\html.txt"
runas=STRING|"0"
wait=STRING|"0"

Oleg Yershov
wimaza
Posts: 2
Joined: Sat Jun 13, 2020 6:12 pm

Re: Get HTML Code

Post by wimaza »

Excellent!! ;)

Thanks a lot for the help!

Regards!
Winston Márquez
Post Reply