473,383 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Stumped on a scrape

I do a lot of scraping and haven't come across this before. The
response isn't returning any of the text from the tables.

Heres what I get on the return.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx
<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="60;
URL=/cgi-bin/totedb/pools.cgi?track=PHA&type=0&percent=true">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<LINK HREF="/bris_styles/tote.css" TYPE="text/css" REL="stylesheet">
<STYLE><!-- a:hover {color: #FFCC33; text-weight: bold;
text-decoration:underline} .linkbtn {color: #FFFFFF; font-size:11pt;
background-color: #008E00; text-decoration: underline; cursor: hand}
..tabfront {color:#FFCC33; font-size:11pt; background-color: #006600;
border: 1px #006600 solid} --></STYLE>
</HEAD>
<BODY ONLOAD="window.setTimeout('window.location.href =
window.location.href', 55000);" CLASS="poolsDoc">

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx
Immediately following this I should be getting

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx
&nbsp;<A class="linkbtn"
HREF="/cgi-bin/totedb/pools.cgi?track=PHA&type=0">&nbsp;Pools&nbsp;</A>&nbsp;<B
class="tabfront">&nbsp;Percentages&nbsp;</B>
<TABLE WIDTH="100%" BORDER="1" CELLPADDING="2" CELLSPACING="0"
CLASS="poolsTable">
<TR ALIGN="CENTER">
<TD WIDTH="12%" CLASS="trackHeader">Track</TD>
<TD WIDTH="4%" CLASS="raceHeader">Race</TD>
<TD WIDTH="5%" CLASS="postHeader">Post</TD>
<TD WIDTH="4%" CLASS="mtpHeader">MTP</TD>
<TD WIDTH="3%" CLASS="pp1Header">1</TD>
<TD WIDTH="3%" CLASS="pp2Header">2</TD>
<TD WIDTH="3%" CLASS="pp3Header">3</TD>
etc..
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx

I went back to some old excel vba code I have and put in my url and ran
it as a hidden instance of IE and it worked fine. Can somebody maybe
give me some pointers? Or maybe I should use hidden IE and strip the
html from it, but I think this might be the long way around and
probably not effecient.
Heres the request code I've been using

Private Sub getstringdata(ByVal sender As Object, ByVal e As
System.Timers.ElapsedEventArgs)
'STEP 1: Create a WebClient instance
Dim objWebClient As New WebClient
Dim urllink As String
Dim strRequestedHTML As String
Dim test As String
Dim txtHTML As String
Dim Trackid As String
Trackid = ComboBox1.Text

urllink =
"http://www.brisnet.com/cgi-bin/totedb/pools.cgi?track=" & Trackid &
"&percent=true&type=0"

'STEP 2: Call the DownloadedData method

Dim aRequestedHTML() As Byte

aRequestedHTML = objWebClient.DownloadData(urllink)

'STEP 3: Convert the Byte array into a String
Dim objUTF8 As New UTF8Encoding

strRequestedHTML = objUTF8.GetString(aRequestedHTML)

txtHTML = strRequestedHTML
Call parsestring(txtHTML, sender, e)

End Sub

Apr 11 '06 #1
0 1017

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason Steeves | last post by:
I have one .aspx form that my users fill out and this then takes that information and populates a second .aspx form via session variables. I need to screen scrape the second .aspx form and e-mail...
73
by: PC Datasheet | last post by:
Does anyone know how to do a "screen scrape" to get data off a website and enter it into an Access table? Thanks for all help? Steve PC Datasheet
3
by: Ollie | last post by:
I know you can screen scrape a website using the System.Net.HttpWebResponse & System.Net.HttpWebRequest classes. But how do you screen scrape a secured website (https) that takes a username &...
5
by: _BNC | last post by:
I need to do the equivalent of 'select all' and 'capture' on a browser screen. I just want the text as it appears on-screen. Is there a simple way to automate this? The thing that may make it...
2
by: Rob Lauer | last post by:
I have written two completely separate web applications that cannot talk directly to one another (applications "A" and "B"). Application "A" has a form that takes some input (radio buttons,...
5
by: crjunk | last post by:
I have a screen scrape page that allows the user to submit a url. When they hit submit, the page is returned back to them on my screen scrape page. Which computer actuall connects to the url to...
4
by: homepricemaps | last post by:
any idea how to scrape a url out of a file? for instance if i want to scrape out the href at the end which is "www.cnn.com" is there a way to do it? <tr class="rulesbody"><td width="183"...
7
by: Swanand Mokashi | last post by:
Hi all -- I would like to create an application(call it Application "A") that I would like to mimic exactly as a form on a foreign system (Application "F"). Application "F" is on the web (so...
1
by: nbomike | last post by:
Hello. I want to scrape pages from a site that generates pages from form inputs using this web app . However, the URL of the results page (the page I want to scrape) is masked and is always the same....
0
by: Hamayun Khan | last post by:
Hi I need to create site scrape tool(job scrap tool). Each site to be scraped needs to have a different job scrape configured as each site will be different. The job scrape tool will allow...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.