Jump to content

Recommended Posts

Posted

While I'm able to navigate this link:

http://rfam.sanger.ac.uk//family/RF00001#tabview=tab0

I'm unable to retrieve it because

INetGet(http://rfam.sanger.ac.uk//family/RF00001#tabview=tab0, "save.html")

will get me all the tabs. Is there any way to avoid this unnecessary network traffic and disk storage?

Posted

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Posted

I modified the codes and downloaded debugbar, but debugbar doesn't give me the index as expected, so i tested by filling in the index by 1, but nothing was out. I very appreciate a bit more hints.

$murl = "http://rfam.sanger.ac.uk/family/RF"

$prefix = "0000"

$i = 1

$page = $murl & $prefix & $i

;INetGet($page, $prefix & $i & ".html")

$filename = $prefix & $i & ".html"

$oIE = _IECreate($page)

$oDiv = _IETagnameGetCollection($oIE, "div", 1)

$html = _IEPropertyGet($oDiv, "innerhtml")

FileOpen($filename, 2)

FileWrite($filename, $html)

FileClose($filename)

_IEQuit($oIE)

Posted

I'm not too sure mate, sorry. The method I showed you is one I have used to get all the contents within a particualr Div. There are other IE methods where you can get elements via the id.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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
×
×
  • Create New...