Get online links, no need OfflineToOnline method

Author Message
Onuralp TANER 10/17/2011 09:08 am
Hi Oleg,

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.

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

Best regards,
Oleg Chernavin
MP Staff
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.

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

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



Thank you.
Oleg Chernavin 10/18/2011 01:54 pm
OK. Here is the updated oe.exe version with the OnDownloadComplete event and IOEProject.DownloadSiteMap method:

http://www.metaproducts.com/download/betas/OEE3661.zip

Oleg.
Onuralp TANER 10/19/2011 03:28 am
Finally,I need updated .Net Interop OE dll to connect to OE.

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

Thank you!

Oleg.
Onuralp TANER 10/20/2011 02:49 am
Open Visual Studio Command Prompt and enter the line:

tlbimp c:\OE.exe /out:OE.dll

That's all.

Download :
http://hotfile.com/dl/132803004/edda0b2/OE.dll.html

Source:
http://msdn.microsoft.com/en-us/library/aa645736(v=vs.71).aspx#vcwlkcominteroppart1cclienttutorialanchor1

Oleg Chernavin 10/20/2011 05:44 am
Thank you very much!

Oleg.
Onuralp TANER 10/25/2011 07:39 am
Oleg,

-project / URL filter / Load file only within starting - Domain selected

I am calling GetMapEntry, it is returning out of starting domain adress.

another problem;

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

Best regards.
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).

Oleg.
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
[Object]
OEVersion=Enterprise 6.0.0.3658
Type=0
IID=7011
Caption=www.haberturk.com
URL=www.haberturk.com
MVer=5
Lev=1
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
SkipMedia=True
LTMethod=1
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwfwebp
FTVideo.Exts=mpgavianimpegmovflvfliflcvivrmramrvasfasxwmvm1vm2vvobsmilmp4m4v
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaapeoggm4aaif
FTArchive.Exts=7zziparcgzzarjlhalayleirarcabtarpakacejarpdftgzexeiso
FTUDef.Exts=jsaxdcssssivbsdtdxslswfclassent
FTText.B=ooxooo
FTImages.B=xoxooo
FTVideo.B=xoxooo
FTAudio.B=xoxooo
FTArchive.B=xoxooo
FTUDef.B=xoxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4
NotIgnoreLogout=False
RSrvsBx=3
RSrvsEx=ciner.com.tr x
RProt=255
LastStart=201:176:138:175:57:241:227:64:
LastEnd=0:0:0:0:0:0:0:0:
LastStarted=25.10.2011 19:15:51
S200=737
S400=5
SAbr=1
SPar=375
SSav=737
SLast=200
SSiz=23290408
SMdf=720
SHTML=375
LFiles=741
LSize=6343721
CFFlags=112
ImgDim=0,0,0,0
PrevURL=http://www.haberturk.com/
LIndexed=False
IndexFiles=False
Oleg Chernavin 10/25/2011 01:10 pm
Yes, everything looks correct. What exact link was outside the domain?

Oleg.
Onuralp TANER 10/26/2011 08:21 am
Oleg,

http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?zid=464&pid=0&random=

http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?custom1=134&custom2=682249&zid=464&pid=0&random=

http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?custom1=134&custom2=682593&zid=464&pid=0&random=
Onuralp TANER 10/26/2011 08:31 am
Oleg,

OEMain.OEInstance.OnDownloadComplete +=
new IMainOEEvents_OnDownloadCompleteEventHandler(OnDownloadComplete);

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
http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?zid=136&pid=0&random=

http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?zid=153&pid=0&random=

http://adsp.ciner.com.tr/advertpro/servlet/view/dynamic/javascript/zone?zid=148&pid=0&random=

Thank you.
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:

http://www.haberturk.com/

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?

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

Oleg.
Onuralp TANER 10/27/2011 08:58 am
Not important.

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.

Oleg.