VB Internet Application

09/07/2003 - 15:24 por Insert Name Here | Informe spam
I am writing a VB.net program to screen scrape a web page to obtain
data.. actually its to grab tv guide data so I can reformat it into
XML

The source is at http://www.yourtv.com.au/guide/

I can write a simple program to obtain this page as a string for
parsing using
sockHTTP.Connect(EPhost)
sockHTTP.Send(abyteGet, abyteGet.Length, 0)

and

Do While iBytes > 0
iBytes = sockHTTP.Receive(abyteReceive,
abyteReceive.Length, 0)
s &= asciiGet.GetString(abyteReceive, 0, iBytes)
Loop


But the site uses cookies, how can I obtain a cookie, keep it, and
more importantly when doing th enext send or post utilise that
cookie!?

Any code examples of screen scraping (or other) using cookies to keep
the session open would be appreciated!


Ideally I would like to run it from a DOS prompt, or have it is a
model windows app showing a status bar etc...


Thanks In Advance
 

Leer las respuestas

#1 JCastro
09/07/2003 - 16:29 | Informe spam
Lo siento pero este grupo es solo en español (mas bien dicho castellano)


"Insert Name Here" escribió en el mensaje
news:
I am writing a VB.net program to screen scrape a web page to obtain
data.. actually its to grab tv guide data so I can reformat it into
XML

The source is at http://www.yourtv.com.au/guide/

I can write a simple program to obtain this page as a string for
parsing using
sockHTTP.Connect(EPhost)
sockHTTP.Send(abyteGet, abyteGet.Length, 0)

and

Do While iBytes > 0
iBytes = sockHTTP.Receive(abyteReceive,
abyteReceive.Length, 0)
s &= asciiGet.GetString(abyteReceive, 0, iBytes)
Loop


But the site uses cookies, how can I obtain a cookie, keep it, and
more importantly when doing th enext send or post utilise that
cookie!?

Any code examples of screen scraping (or other) using cookies to keep
the session open would be appreciated!


Ideally I would like to run it from a DOS prompt, or have it is a
model windows app showing a status bar etc...


Thanks In Advance

Preguntas similares