forummember Posted November 4, 2010 Share Posted November 4, 2010 I can't get the source code via _INetGetSource from this page:http://www.objektvision.se/fastigheter_till_salu#__state__2__1_20Example code:#include <inet.au3> dim $source $source=_INetGetSource("http://www.objektvision.se/fastigheter_till_salu#__state__2__1_20") MsgBox(0, "Example", $source)What should I do?Thx!!! Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 4, 2010 Share Posted November 4, 2010 It shouldn't be required for that character, but what if you use URL encoding? "http://www.objektvision.se/fastigheter_till_salu%23__state__2__1_20" Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
forummember Posted November 4, 2010 Author Share Posted November 4, 2010 http://www.objektvision.se/fastigheter_till_salu%23__state__2__1_20Does not return the page, so it will not work...thanks anyway!Any other suggestions? Link to comment Share on other sites More sharing options...
wakillon Posted November 4, 2010 Share Posted November 4, 2010 (edited) http://www.objektvision.se/fastigheter_till_salu%23__state__2__1_20Does not return the page, so it will not work...thanks anyway!Any other suggestions?If the parse string contains a crosshatch "#" character, then the substring after the first (left-most) crosshatch "#" and up to the end of the parse string is the <fragment> identifier. If the crosshatch is the last character, or no crosshatch is present, then the fragment identifier is empty. The matched substring, including the crosshatch character, is removed from the parse string before continuing.Note that the fragment identifier is not considered part of the URL. However, since it is often attached to the URL, parsers must be able to recognize and set aside fragment identifiers as part of the process.Try with http://www.objektvision.se/fastigheter_till_salu and you will get it ! Edited November 4, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 4, 2010 Share Posted November 4, 2010 Keep in mind the fact that # is used to indicate an anchor. The actual page is just "http://www.objektvision.se/fastigheter_till_salu" like wakillon said. The #__state__2_1_20 is an anchor in the page. If the page is actually generated by Javascript and uses the anchor to indicate the page to set up dynamically, _InetGetSource will not help you. Link to comment Share on other sites More sharing options...
forummember Posted November 5, 2010 Author Share Posted November 5, 2010 It makes me really sad to hear that i can't use _INetGetSource. For now I (unhappily) use the following code: #include <IE.au3> $sURL = "http://www.objektvision.se/fastigheter_till_salu#__state__2__1_20" $oIE = _IECreate($sURL, 0, 0, 1, 0) $sHTML = _IEDocReadHTML($oIE) MsgBox(0, "Example", $sHTML) Thx any way. Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 5, 2010 Share Posted November 5, 2010 (edited) You can use _InetGetSource. You just aren't using it correctly. If the page is generated via Javascript, then the page isn't too great. Edited November 5, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
forummember Posted November 9, 2010 Author Share Posted November 9, 2010 You can use _InetGetSource. You just aren't using it correctly.If the page is generated via Javascript, then the page isn't too great.Hello uʍop-ǝpısdn!Your comment about me not using _InetGetSource in the correct way is probably true...But thats why i'm posting, and your post does not help.I would still be very grateful if you or any one else know how to get the html via _InetGetSource from http://www.objektvision.se/fastigheter_till_salu#__state__2__1_20Big thanks in advance! Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 9, 2010 Share Posted November 9, 2010 (edited) I already did answer your question. You don't access the URL that way. The stuff after the # is an anchor on the page. The page address is just the stuff before the #. Edited November 9, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
forummember Posted November 9, 2010 Author Share Posted November 9, 2010 (edited) - Edited November 9, 2010 by forummember Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now