Get online links, no need OfflineToOnline method
|Onuralp TANER||10/17/2011 09:08 am|
First, sorry about my bad english.
I don't want to download any project. If it's possible. I need ony links of project. And I don't understand why can we take links directly ? We must use OfflineToOnlineUrl method. Do you ? Finally, I need an event. When project download or node of sequencer complate, get an event occurs.
|Oleg Chernavin||10/17/2011 09:30 am|
|If I understand you correctly, you want to have links to all pages/files on the whole site? If so, you should use the Site Map feature. It loads all pages (with no images) and this way Offline Explorer knows about all links.
I will add the OnDownloadComplete event in the next version.
|Onuralp TANER||10/17/2011 10:27 am|
|You right. I want to have links to all pages/files on the whole site. And, I will add to all projects sequencer. It is always loop. then I'll take all of found new links.
I can't find Site Map method. There is only MakeGoogleSiteMap feture in OE.dll. Do you have any suggestions for me ?
Thank you very much for your fast answer Oleg. I look forward to the event OnDownloadComplete.
|Oleg Chernavin||10/17/2011 03:18 pm|
|I see. If you need to check for new links appearing, you need to make full downloads. Then on the next download, Offline Explorer will use File Modification checks to see which pages were changed and which new links were added. Site Map doesn't apply here.
Regarding the event - you may check the IOEProject.GetStatus from time to time. If it is not OEPS_Loading or OEPS_Suspended then download has completed.
|Onuralp TANER||10/18/2011 05:38 am|
|I gave up finding new link. I can do it another way.
I can see and use SiteMap feature on OfflineExplorer UI, it is great. But I couldn't find it in .Net dll and OLE Automation.
How can I programmatically use SiteMap feature.
OnDownloadComplate event and SiteMap feature (if returning online links ) enough for me.
|Oleg Chernavin||10/18/2011 01:54 pm|
|OK. Here is the updated oe.exe version with the OnDownloadComplete event and IOEProject.DownloadSiteMap method:
|Onuralp TANER||10/19/2011 03:28 am|
|Finally,I need updated .Net Interop OE dll to connect to OE.
|Onuralp TANER||10/19/2011 08:41 am|
|That's okay! I learned how can I generate Interop.dll yet.
|Oleg Chernavin||10/19/2011 10:22 am|
|OK. Very good. You may describe the process here for other users or post a link to a description.
|Onuralp TANER||10/20/2011 02:49 am|
|Open Visual Studio Command Prompt and enter the line:
tlbimp c:\OE.exe /out:OE.dll
|Oleg Chernavin||10/20/2011 05:44 am|
|Thank you very much!
|Onuralp TANER||10/25/2011 07:39 am|
-project / URL filter / Load file only within starting - Domain selected
I am calling GetMapEntry, it is returning out of starting domain adress.
link = GetMapEntry(i);
OfflineToOnlineURL(link); // sometimes return like this : http://www.zaman.com/%&Ovr0/yazar.do?yazino=1193152&title=beraberlik-iyi-idi-ama // this link wrong.
It must be : http://www.zaman.com/yazar.do?yazino=1193152&title=beraberlik-iyi-idi-ama
what is %&Ovr0/ ?
Can you add a method which get OnlineLinks
|Oleg Chernavin||10/25/2011 09:44 am|
|Perhaps, some File Filters were setup to download from all sites. Please check the Project Properties dialog.
I will fix the OfflineToOnlineURL method now. Meanwhile, please just remove these symbols (overloaded directory).
|Onuralp TANER||10/25/2011 12:24 pm|
|I checked to projects settings. I couldn't see any problem.
My project url : haberturk.com,
but always it give me adsp.ciner.com.tr in project.
Ciner.com.tr is a iframe.
Stream 1.2 File
|Oleg Chernavin||10/25/2011 01:10 pm|
|Yes, everything looks correct. What exact link was outside the domain?
|Onuralp TANER||10/26/2011 08:21 am|
|Onuralp TANER||10/26/2011 08:31 am|
public void OnDownloadComplete(int IID)
I am not getting any error, but the method does not work when download complate. I'm working on C# 64bit.
Do you have any suggestions for me ?
|Onuralp TANER||10/26/2011 10:17 am|
|Oleg Chernavin||10/26/2011 10:36 am|
|I fixed the issue with URL Filtering. It was related to the starting URL. Please change it to:
The next version will work even with the www.haberturk.com correctly.
Regarding the event - frankly, I don't know. Can you catch other events the same way?
|Onuralp TANER||10/27/2011 08:11 am|
|http://<domain>/ Great! It is working.
I can't catch any events. I think that's about, managed and unmanaged code.
|Oleg Chernavin||10/27/2011 08:11 am|
|Yes, maybe. I am not good in .NET at all, so can't even advice you anything. Sorry!
|Onuralp TANER||10/27/2011 08:58 am|
I continue to test OfflineExplorer.
offlinetoonline method sometimes gives me like that links: http://inci.sozlukspot.com/w/sonsuz-elektrigi-kesfettim-capsli/default.htm
When I want to go to the url, I get the error 404 page not found. If I delete the "default.htm" in the link, the link starting to work.
like that : http://inci.sozlukspot.com/w/sonsuz-elektrigi-kesfettim-capsli/
What should I do in this case ?
|Oleg Chernavin||10/27/2011 09:12 am|
|Strange. I checked the code and there is a line to remove that. I will try to test and reproduce.