Author |
Message |
ahsonmonis
|
Posted: Thu Oct 18, 2007 5:54 pm Post subject: An Important Question: About programming and the internet! |
|
|
I am just wondering, if it is possible for a computer program to run an internet browser. (i think it is) Therefore, the main question is, is it possible for me to run a program that would go through and open 10 websites, and right click on all ten sites and go on view source...?
Basically, i want to go on lets say google, right click somewhere on that page, and be able to click on an option from the right click. Is that possible with a program. (I PREFERABLY WANT TURING). |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Thu Oct 18, 2007 7:08 pm Post subject: RE:An Important Question: About programming and the internet! |
|
|
It is posable to make a program do that however it is a horiably in efshenent method of doing it.
What a web borwser does is send a request to a web server for a document (noramly a html document), then the browser parses this html (or xhtml, ect) and displays it graphicly.
Insdtend of trying to use windows api calls and moving the mouse around you can just have your program ask the same web server for the html and it will serv it to your program just like it whould a borwser.
Turing can do this, check out the net commands/modual in the turing help file. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Tony
|
Posted: Thu Oct 18, 2007 7:22 pm Post subject: RE:An Important Question: About programming and the internet! |
|
|
As Dan have said -- write a simple web browser to fetch the page, and then simply don't render it |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
ahsonmonis
|
Posted: Fri Oct 19, 2007 9:42 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
well, is it possible for any of u to make a program that could do that. I have no idea whatsoever how to use any modules. all i know is basic turing stuff and basic logic eg if statements and loops etc. also procedures and stuff like that.
if any of u is able to create a program in either C++, java or turing (preferably turing) that could go on a website, right click on it, and click on view source, and then search that view source notepad file for "cave.php?" without the quotations and find the page that has a view source file where "cave.php?" is there, that would be really helpful.
The purpose of this:
1. This is not related to any academics or school related so it is ok, i think, that i can use ur program, cos it is just for me and my curiosity.
2. I want to see how programming and internet can work and how u can manipulate the internet using the program. Only for my knowledge.
3. I have a game that requires me to find a page that has a view source file with "cave.php?" in it, and it would help me get stronger in the game... so plz help me out, and spend some time and make a program that will accomplish my challenge! |
|
|
|
|
|
ahsonmonis
|
Posted: Fri Oct 19, 2007 9:44 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
also, i have no idea what fetch or render mean, and i didn't understand a single word Dan said because of my little background in programming. |
|
|
|
|
|
Euphoracle
|
Posted: Fri Oct 19, 2007 10:06 pm Post subject: RE:An Important Question: About programming and the internet! |
|
|
Fetch means to get something, render means to draw something in laymen terms. |
|
|
|
|
|
Mazer
|
Posted: Fri Oct 19, 2007 11:15 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
It looks like you're trying to violate the terms of service in a browser-based role playing game. Would you like help? |
|
|
|
|
|
Tony
|
Posted: Fri Oct 19, 2007 11:21 pm Post subject: RE:An Important Question: About programming and the internet! |
|
|
I'm pretty sure that those are not actually technical terms:
Fetch - To come or go after and take or bring back: The puppy fetched the stick that we had tossed.
Render - To come or go after and take or bring back: The puppy fetched the stick that we had tossed.
It sounds like this could be something for you to exploit as a motivation to learn more about computers and programming. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
Nick
|
Posted: Sat Oct 20, 2007 1:05 am Post subject: RE:An Important Question: About programming and the internet! |
|
|
im not sure ifs its a typo or not but fetch and render are the same thing in ur post...
also wtf is up with MAZER's post?
but on topic i think the best way to get the source code would to do as Dan mentioned |
|
|
|
|
|
Euphoracle
|
Posted: Sat Oct 20, 2007 7:21 am Post subject: RE:An Important Question: About programming and the internet! |
|
|
Tony wrote: Render - To come or go after and take or bring back: The puppy fetched the stick that we had tossed.
What I think Tony meant was
Render - To convert any coded content to the required format for display or printing. Although the term is typically used to refer to images, it may refer to any data. For example, an HTML page, which contains text and graphics, is said to be "rendered" when it is displayed: Internet Explorer renders the Google main page. |
|
|
|
|
|
rdrake
|
Posted: Sat Oct 20, 2007 9:42 am Post subject: Re: An Important Question: About programming and the internet! |
|
|
Like others have said, you can just connect to the server and send it a simple request, then read back what it gives you. It sends back the HTML, not some magic voodoo language which your browser must decipher.
code: | Microsoft Telnet> o compsci.ca 80
Connecting To compsci.ca...
GET /thiswillcausea404.php
*snip*
<a href="http://compsci.ca/v3/staff.php" title="Staff" class="m
nu"><img style="vertical-align:middle; margin:2px" src="http://compsci.ca/v3/templates/subSilver/images/menu/icon_mini_staff.
border="0" alt="Staff" title="Staff" hspace="3" />Staff</a>
<a href
p://compsci.ca/v3/search.php" title="Search" class="mainmenu"><img style="vertical-align:middle; margin:2px" src="http://comp
a/v3/templates/subSilver/images/menu/icon_mini_search.gif" border="0" alt="Search" title="Search" hspace="3" />Search</a>&nbs
<a href="http://compsci.ca/v3/bugs" title="Bugs" class="mainmenu"><img style="vertical-
:middle; margin:2px" src="http://compsci.ca/v3/templates/subSilver/images/menu/icon_mini_admin.gif" border="0" alt="Bugs" tit
ugs" hspace="3" />Bugs</a>
<a href="http:/
sci.ca/v3/chatroom.php" title="" class="mainmenu"><img style="vertical-align:middle; margin:2px" src="http://compsci.ca/v3/te
es/subSilver/images/menu/icon_mini_chatroom.gif" border="0" alt="" title="" hspace="3" />Chat Room</a>
<!-- <a href="http://compsci.ca/v3/kb.php" class="mainmenu"
title="Tutorials & A
es"><img style="vertical-align:middle; margin:2px"
src="http://compsci.ca/v3/templates/subSilver/images/menu/icon_mini_faq.gi
rder="0" alt="Tutorials & Articles" hspace="3" />Tutorials & Articles</a> -->
<a href="http://compsci.ca/v3/memberlist.php" title="Members" class="mainmenu">
style="vertical-align:middle; margin:2px" src="http://compsci.ca/v3/templates/subSilver/images/menu/icon_mini_members.gif" bo
"0" alt="Members" title="Members" hspace="3" />Members</a>
</td>
*snip* | Oh yeah, that's the ticket. |
|
|
|
|
|
Zampano
|
Posted: Sat Oct 20, 2007 3:15 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
Mazer @ Fri Oct 19, 2007 11:15 pm wrote:
It looks like you're trying to violate the terms of service in a browser-based role playing game. Would you like help?
Lol, now that's funny. |
|
|
|
|
|
Euphoracle
|
Posted: Sat Oct 20, 2007 3:22 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
Mazer @ Fri Oct 19, 2007 11:15 pm wrote: It looks like you're trying to violate the terms of service in a browser-based role playing game. Would you like help?
http://techdirt.com/articles/20071017/092927.shtml
Crap! |
|
|
|
|
|
Mazer
|
Posted: Sat Oct 20, 2007 4:40 pm Post subject: Re: An Important Question: About programming and the internet! |
|
|
Euphoracle @ Sat Oct 20, 2007 3:22 pm wrote:
I wasn't suggesting that they would try to sue you, just that they probably want their players to advance by actually playing the game rather than using a script do to it for you and gain an unfair advantage over the others. |
|
|
|
|
|
Euphoracle
|
Posted: Sat Oct 20, 2007 5:16 pm Post subject: RE:An Important Question: About programming and the internet! |
|
|
I was just posting a recent article of interest :p |
|
|
|
|
|
|