Getting HTML in Yahoo?

B

Brett

In Yahoo mail, I click the Inbox link and see my messages. If I view
source, I don't have HTML which contains the URL of each message. The
source HTML contains javascripting and framesets. This is different from
what I am seeing.

If I right click on a message link and select "copy shortcut", I can paste
this link into my browser. This brings me to my message. If I view source,
once again, it is javascript and framesets. How do I get at the HTML that
is making all the tables and contains the images I'm seeing?

Accessing IE DOM is a possibility but won't that just give me access to the
javascripting and framsets since that is all the client has (remember what
is seen in view souce)? I know the HTML has to be accessible somehow.
Otherise, you wouldn't see it...right?

Sorry if this is the wrong group. If so, can some one point me in the right
direction?

Thanks,
Brett
 
M

moi

There is HTML in the Yahoo mail files. It starts at:

<!-- type = text -->

it ends at:

<!-- toctype = X-unknown -->

I made a simple .exe which extracts the HTML and saves it into a new file.
It's here: http://www.geocities.com/smplprgrsrc/files/YMAIL.zip

Only problem is that Yahoo also changes original hyperlinks by adding their
own stuff so you should handle that with Search & Replace in a text editor.
 
B

Brett

Thanks.

First is the frameset. From there you can follow a frame source link but
that will just kick you back into the frameset. I don't understand how you
are keeping from getting kicked back into the frameset???

You have the message Inbox page open, you write the output file, which is a
frameset. How do you follow a message URL, since that is not in the
frameset? Or do you get that far?

Brett
 
M

moi

I don't have to deal with framesets. I only use plain text in the file.
All I do is read the saved Yahoo file text line by text line. If the begin
tag is found, it starts writing to a new file, until the end tag.
This has just nothing to do with HTML, it's all about reading text files and
writing text files.
So the program only finds and writes the original HTML-code that is found in
the Yahoo-mail-file.
 
B

Brett

Maybe we are talking about completely different things. Here is what I'm
referring to:

1. log into yahoo mail
2. click inbox link
3. download this page with message URLs in it

Step #3 can't be done. If you download that page via IE, it will download a
small page with javascript in it. You can then open the local saved page,
which has a javascript URL redirect. This displays your Inbox message list
by referencing Yahoo.com. Although it all looks like it is still on your
hard drive. It will last about 24 hours before the session expires.

"All I do is read the saved Yahoo file text line by text line." Again, this
is a URL redirect back to the online version of your Inbox.

Perhaps you could explain your process in some step by step detail and that
may clear it up for me. I'd appreciate if you could because I really don't
understand.

Thanks,
Brett
 
M

moi

Imagine, in my Yahoo mailbox is a message from you, (e-mail address removed)

When I right click on that link in my Yahoo-inbox, I choose: Save Target As

I save the hole bunche as 'C:\mailtodo.html'

Then I use my app and type on Command Prompt:

C:\YMAIL C:\mailtodo.html C:\yahoomailout.html



After that, I can open and further design C:\yahoomailout.html, which is the
original HTML.
 
B

Brett

It seems this is not completely programmatic than. I want to
programmatically do the right click (or something that mimicks this) in your
first step. Yes - it is easy enough to right click and save target as.
However, I need to programmatically gather those message URLs in the Inbox.
That doesn't seem to be something you are doing. I see you are doing it but
only after you have right clicked, which involves user intervention and what
I want to avoid.
 
M

moi

Yes, it is completely programmatic, only you bring up your second question
now, because the first question was about 'text files'.
But now I guess you want to have incoming mails being modified before
they're even read.
That script I can't write.
 
B

brett

Nothing is modified. I simply want to get a message off of Yahoo
completely programmatically without user intervention. Take logging in
out of the equation and start in the Inbox. Go from there but do it
all programmatically. That's my question.
 
M

moi

After you, my motivation to help people is reduced to -100%.
Good job!
Who's the next moron?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top