473,387 Members | 3,810 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,387 software developers and data experts.

Screen Scrape

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 pull in the
information -the user's computer or the webserver?

Thanks,
CR Junk

Dec 14 '05 #1
5 1637
Note sure to understand the question. Do you mean your page fetch some other
page ? Then you should now how it works ?

Hard to say without seeing some code but IMO this is generally done server
side...

--
Patrice

"crjunk" <cr****@earthlink.net> a écrit dans le message de
news:11**********************@g43g2000cwa.googlegr oups.com...
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 pull in the
information -the user's computer or the webserver?

Thanks,
CR Junk

Dec 14 '05 #2
Here is the code I'm using. I assume that the web server is connecting
to www.cnn.com or whatever the user types into the text box, but I'm
not positive.

Dim objWebClient As New WebClient

Dim strURL As String = txtScrape.Text.Trim
Dim objUTF8 As New System.Text.UTF8Encoding
lblHTMLOutput.Text =
objUTF8.GetString(objWebClient.DownloadData(strURL ))

Thanks,
CR Junk

Dec 14 '05 #3
> Dim objWebClient As New WebClient

Dim strURL As String = txtScrape.Text.Trim
Dim objUTF8 As New System.Text.UTF8Encoding
lblHTMLOutput.Text =
objUTF8.GetString(objWebClient.DownloadData(strURL ))


Obviously, the computer running this code is the one that requests and
consumes the remote page. Since this looks like server-side code, I would
imagine that it's your IIS box fetching the page, not the client browser.
--
Peace & happy computing,

Mike Labosh, MCSD

"When you kill a man, you're a murderer.
Kill many, and you're a conqueror.
Kill them all and you're a god." -- Dave Mustane
Dec 14 '05 #4
Thanks for the information.

CR Junk

Dec 14 '05 #5
Server side in the context of a web application (note that this same code
would work in a Windows .NET application).

Basically :
- all the code that is triggered through Page events is server side code
- the "Page" runs server side and renders the HTML output that is sent to
the browser. When the page runs, it can include in the rendered output
client side code (most often JavaScript code) that will be executed client
side.

--
Patrice

"crjunk" <cr****@earthlink.net> a écrit dans le message de
news:11**********************@g44g2000cwa.googlegr oups.com...
Here is the code I'm using. I assume that the web server is connecting
to www.cnn.com or whatever the user types into the text box, but I'm
not positive.

Dim objWebClient As New WebClient

Dim strURL As String = txtScrape.Text.Trim
Dim objUTF8 As New System.Text.UTF8Encoding
lblHTMLOutput.Text =
objUTF8.GetString(objWebClient.DownloadData(strURL ))

Thanks,
CR Junk

Dec 14 '05 #6

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

Similar topics

2
by: Adrian Lumsden | last post by:
Hello, I have an app where I have to screen scrape to capture an image from a JMF film player. The user is given a dialog with a list of frames that can be exported as images. If the one they...
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...
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 &...
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,...
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...
7
by: ljr2600 | last post by:
Hello, I'm very new to python and still familiarizing myself with the language, sorry if the post seems moronic or simple. For a side project I'm working on I need to be able to scrape a...
0
by: itfetish | last post by:
We have a web parts intranet at our office here I have been working on. I have been trying to create a way of getting our OCE TDS 600 plotter queue to be a web part on the page, seeing as their...
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....
1
by: newdev | last post by:
Hi All, Can somebody maybe please help me? - how do i screen scrape data from a dos application / window to .net application by using c#? - how do i screen scrape data from a dos application /...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.